mirror of
https://github.com/searxng/searxng.git
synced 2024-11-27 05:11:03 +00:00
[mod] microsoft academic: increase timeout to 6 seconds
also avoid a crash when there is no result close #433
This commit is contained in:
parent
9fe1ee4ed9
commit
64b29ad838
2 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,7 @@ def response(resp):
|
||||||
if not response_data:
|
if not response_data:
|
||||||
return results
|
return results
|
||||||
|
|
||||||
for result in response_data['pr']:
|
for result in response_data.get('pr', {}):
|
||||||
if 'dn' not in result['paper']:
|
if 'dn' not in result['paper']:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
@ -873,6 +873,7 @@ engines:
|
||||||
engine: microsoft_academic
|
engine: microsoft_academic
|
||||||
categories: science
|
categories: science
|
||||||
shortcut: ma
|
shortcut: ma
|
||||||
|
timeout: 6.0
|
||||||
|
|
||||||
- name: mixcloud
|
- name: mixcloud
|
||||||
engine: mixcloud
|
engine: mixcloud
|
||||||
|
|
Loading…
Reference in a new issue