From 87acabb76bedf570a5167b3c03436a45761910bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20=C3=98rb=C3=A6k=20Chemnitz?= Date: Fri, 22 Dec 2023 08:03:22 +0100 Subject: [PATCH] not banned, but broader unknown auth error --- twscrape/queue_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/twscrape/queue_client.py b/twscrape/queue_client.py index a032a84..535fd3a 100644 --- a/twscrape/queue_client.py +++ b/twscrape/queue_client.py @@ -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()