mirror of https://github.com/searxng/searxng.git
searx.search.checker: bug fix
This commit is contained in:
parent
e2af3e4970
commit
d4e21dec26
|
@ -19,6 +19,7 @@ from searx.results import ResultContainer
|
|||
from searx.search.models import SearchQuery, EngineRef
|
||||
from searx.search.processors import EngineProcessor
|
||||
from searx.metrics import counter_inc
|
||||
from searx.exceptions import SearxEngineResponseException
|
||||
|
||||
|
||||
logger = logger.getChild('searx.search.checker')
|
||||
|
@ -104,6 +105,9 @@ def _download_and_check_if_image(image_url: str) -> bool:
|
|||
except httpx.HTTPError:
|
||||
logger.exception('Exception for %s', image_url)
|
||||
return False
|
||||
except SearxEngineResponseException:
|
||||
logger.exception('Exception for %s', image_url)
|
||||
return False
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue