Skip to content
Snippets Groups Projects
Commit c076da74 authored by Michael E. Rose's avatar Michael E. Rose
Browse files

Return None if idxterms is empty list

parent 857acb11
No related branches found
No related tags found
No related merge requests found
......@@ -320,7 +320,7 @@ class AbstractRetrieval(Retrieval):
except AttributeError: # idxterms is empty
return None
try:
return [d['$'] for d in terms]
return [d['$'] for d in terms] or None
except AttributeError:
return None
......
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