From 2bed79095c9803f5444aa9386fd722605e7023ba Mon Sep 17 00:00:00 2001 From: Son Date: Thu, 17 Jun 2021 23:04:25 +0200 Subject: [PATCH] ignore 5** error from HIBP --- cron.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cron.py b/cron.py index aeaf5700..3b93a639 100644 --- a/cron.py +++ b/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",