From c99c6915971b065c05521603e04f6060ca0c5b49 Mon Sep 17 00:00:00 2001 From: Boris Ponsioen <b.g.t.ponsioen@uva.nl> Date: Mon, 16 Apr 2018 15:49:13 +0200 Subject: [PATCH] Readds error handling in get_crossref_test temporarily --- metacore/services.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metacore/services.py b/metacore/services.py index b9783e3e1..2a626fb59 100644 --- a/metacore/services.py +++ b/metacore/services.py @@ -40,7 +40,8 @@ def get_crossref_test(cursor='*'): citables = [parse_crossref_citable(it) for it in citables_json] # Parser returns None if there's an error - errors = any([not i for i in citables if not i]) + errors = any([not i for i in citables if i == False]) + orig_citables = citables citables = [citable for citable in citables if citable is not None] # Mass insert in database (will fail on encountering existing documents -- GitLab