From a6ee55180e4bd048b8e25f5b5a515018614c0ce6 Mon Sep 17 00:00:00 2001 From: Boris Ponsioen <b.g.t.ponsioen@uva.nl> Date: Mon, 16 Apr 2018 15:44:15 +0200 Subject: [PATCH] Readds error handling in get_crossref_test temporarily --- metacore/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metacore/services.py b/metacore/services.py index 0c6b856ba..b9783e3e1 100644 --- a/metacore/services.py +++ b/metacore/services.py @@ -40,7 +40,7 @@ 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 a if not i]) + errors = any([not i for i in citables if not i]) citables = [citable for citable in citables if citable is not None] # Mass insert in database (will fail on encountering existing documents -- GitLab