mirror of
https://github.com/searxng/searxng.git
synced 2024-11-27 05:11:03 +00:00
[fix] pep8
This commit is contained in:
parent
f7bb45e891
commit
c5c812899f
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ def search_one_request_safe(engine_name, query, request_params, result_container
|
|||
# update continuous_errors / suspend_end_time
|
||||
engine.continuous_errors += 1
|
||||
engine.suspend_end_time = time() + min(settings['search']['max_ban_time_on_fail'],
|
||||
engine.continuous_errors*settings['search']['ban_time_on_fail'])
|
||||
engine.continuous_errors * settings['search']['ban_time_on_fail'])
|
||||
else:
|
||||
# no HTTP error (perhaps an engine error)
|
||||
# anyway, reset the suspend variables
|
||||
|
|
Loading…
Reference in a new issue