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:
|
elif r.status_code == 404:
|
||||||
# No breaches found
|
# No breaches found
|
||||||
alias.hibp_breaches = []
|
alias.hibp_breaches = []
|
||||||
|
elif r.status_code > 500:
|
||||||
|
LOG.w("HIBP server 5** error %s", r.status_code)
|
||||||
|
return
|
||||||
else:
|
else:
|
||||||
LOG.error(
|
LOG.error(
|
||||||
"An error occured while checking alias %s: %s - %s",
|
"An error occured while checking alias %s: %s - %s",
|
||||||
|
|
Loading…
Reference in New Issue