diff --git a/src/keyserver_bot/wkd.py b/src/keyserver_bot/wkd.py index 0305591..040bc1d 100644 --- a/src/keyserver_bot/wkd.py +++ b/src/keyserver_bot/wkd.py @@ -17,6 +17,9 @@ def request_from_wkd(email: str, server: str) -> str: except requests.exceptions.SSLError: print(f"SSL Error when querying {wkd_url}") return "" + if b"Too many recent failed key server lookups" in r.content: + print(f"Too many failed lookups error when queying {wkd_url}") + return "" if r.status_code >= 400: return "" return base64.b64encode(r.content).decode().strip()