ignore 5** error from HIBP
This commit is contained in:
parent
93991816c9
commit
2bed79095c
3
cron.py
3
cron.py
|
@ -801,6 +801,9 @@ async def _hibp_check(api_key, queue):
|
|||
elif r.status_code == 404:
|
||||
# No breaches found
|
||||
alias.hibp_breaches = []
|
||||
elif r.status_code > 500:
|
||||
LOG.w("HIBP server 5** error %s", r.status_code)
|
||||
return
|
||||
else:
|
||||
LOG.error(
|
||||
"An error occured while checking alias %s: %s - %s",
|
||||
|
|
Loading…
Reference in New Issue