зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-28 20:54:24 +02:00
banned on unknown auth error
Этот коммит содержится в:
родитель
df94e77295
Коммит
24bd19cb01
@ -173,7 +173,8 @@ class QueueClient:
|
||||
if rep.status_code == 200 and "_Missing: No status found with that ID." in msg:
|
||||
return # ignore this error
|
||||
|
||||
if rep.status_code == 200 and "Authorization: Denied by access control: unspecified reason" in msg:
|
||||
if rep.status_code == 200 and "Authorization" in msg:
|
||||
await self._close_ctx(-1, banned=True, msg=msg)
|
||||
raise UnknownAuthorizationError(msg)
|
||||
|
||||
# todo: (32) Could not authenticate you
|
||||
|
||||
Загрузка…
x
Ссылка в новой задаче
Block a user