зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 05:04:22 +02:00
not banned, but broader unknown auth error
Этот коммит содержится в:
родитель
b514e181a1
Коммит
87acabb76b
@ -174,12 +174,15 @@ class QueueClient:
|
|||||||
return # ignore this error
|
return # ignore this error
|
||||||
|
|
||||||
if rep.status_code == 200 and "Authorization" in msg:
|
if rep.status_code == 200 and "Authorization" in msg:
|
||||||
|
return # ignore this error
|
||||||
raise UnknownAuthorizationError(msg)
|
raise UnknownAuthorizationError(msg)
|
||||||
|
|
||||||
# todo: (32) Could not authenticate you
|
# todo: (32) Could not authenticate you
|
||||||
|
|
||||||
if msg != "OK":
|
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()
|
rep.raise_for_status()
|
||||||
|
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user