Fix for #2547 (None isn't iterable, so in case scholary request fails, empty list has to be returned)
This commit is contained in:
parent
edc9703716
commit
bd52f08a30
|
@ -54,7 +54,7 @@ class scholar(Metadata):
|
|||
scholar_gen = itertools.islice(scholarly.search_pubs(query), 10)
|
||||
except Exception as e:
|
||||
log.warning(e)
|
||||
return None
|
||||
return list()
|
||||
for result in scholar_gen:
|
||||
match = self._parse_search_result(
|
||||
result=result, generic_cover="", locale=locale
|
||||
|
|
Loading…
Reference in New Issue
Block a user