diff --git a/metacore/services.py b/metacore/services.py index 2a626fb595d06686e51f20c5c33778d9f0170d86..9f3b858d982aace15c9e821097f429a37b5a364c 100644 --- a/metacore/services.py +++ b/metacore/services.py @@ -42,7 +42,7 @@ def get_crossref_test(cursor='*'): # Parser returns None if there's an error 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] + citables = [citable for citable in citables if citable] # Mass insert in database (will fail on encountering existing documents # with same DOI