[mod] microsoft academic: increase timeout to 6 seconds
also avoid a crash when there is no result close #433
This commit is contained in:
@@ -47,7 +47,7 @@ def response(resp):
|
||||
if not response_data:
|
||||
return results
|
||||
|
||||
for result in response_data['pr']:
|
||||
for result in response_data.get('pr', {}):
|
||||
if 'dn' not in result['paper']:
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user