not banned, but broader unknown auth error

Этот коммит содержится в:
Niels Ørbæk Chemnitz 2023-12-22 08:03:22 +01:00
родитель b514e181a1
Коммит 87acabb76b

Просмотреть файл

@ -174,12 +174,15 @@ class QueueClient:
return # ignore this error
if rep.status_code == 200 and "Authorization" in msg:
return # ignore this error
raise UnknownAuthorizationError(msg)
# todo: (32) Could not authenticate you
if msg != "OK":
raise ApiError(rep, res)
logger.error(f"Unknown error: {msg}")
return # ignore this error
#raise ApiError(rep, res)
rep.raise_for_status()