Should always fallback if status code isnt 200

This commit is contained in:
Solirs 2023-03-22 22:39:31 +01:00
parent 659c00f2ca
commit ac0fed69e4

View file

@ -332,7 +332,6 @@ def get_favicon_or_logo(imgtype: str):
resp, stream = http_stream(method='GET', url=path, headers=request_headers, allow_redirects=True)
if resp.status_code != 200:
logger.debug(f"{imgtype}: Bad status code %i", resp.status_code)
if resp.status_code >= 400:
return fallback
resp_ok = True
except httpx.HTTPError: