1
0
Fork 0

searx.search.checker: bug fix

This commit is contained in:
Alexandre Flament 2023-10-01 09:39:44 +00:00 committed by Alexandre Flament
parent e2af3e4970
commit d4e21dec26
1 changed files with 4 additions and 0 deletions

View File

@ -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