Update main.py

This commit is contained in:
Barbariskaa 2023-05-09 21:01:28 +03:00 committed by GitHub
parent 420de2d7e0
commit 4702df56c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -310,8 +310,10 @@ class SSEHandler(web.View):
except Exception as e:
if str(e) == "'messages'":
print("Ошибка:", str(e), "\nПроблема с учеткой. Либо забанили, либо нужно залогиниться.")
if str(e) == " " or str(e) == "":
elif str(e) == " " or str(e) == "":
print("Таймаут.")
elif str(e) == "received 1000 (OK); then sent 1000 (OK)":
print("Слишком много токенов. Больше 14000 токенов не принимает.")
else:
print("Ошибка: ", str(e))
return self.response