SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit a6ee5518 authored by Boris Ponsioen's avatar Boris Ponsioen
Browse files

Readds error handling in get_crossref_test temporarily

parent 6759f25a
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ def get_crossref_test(cursor='*'): ...@@ -40,7 +40,7 @@ def get_crossref_test(cursor='*'):
citables = [parse_crossref_citable(it) for it in citables_json] citables = [parse_crossref_citable(it) for it in citables_json]
# Parser returns None if there's an error # 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] citables = [citable for citable in citables if citable is not None]
# Mass insert in database (will fail on encountering existing documents # Mass insert in database (will fail on encountering existing documents
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment