ignore error 385 if not verbose
This commit is contained in:
parent
5e87ac7aec
commit
b4082fad6e
1 changed files with 2 additions and 0 deletions
2
main.py
2
main.py
|
@ -157,6 +157,8 @@ class Listener(Stream):
|
||||||
# https://developer.twitter.com/en/support/twitter-api/error-troubleshooting
|
# https://developer.twitter.com/en/support/twitter-api/error-troubleshooting
|
||||||
if error["code"] == 385:
|
if error["code"] == 385:
|
||||||
error["message"] = "Tweet supprimé ou auteur en privé/bloqué."
|
error["message"] = "Tweet supprimé ou auteur en privé/bloqué."
|
||||||
|
if not keys["VERBOSE"]:
|
||||||
|
pass
|
||||||
print(f"{errorMessage[:-2]} ({error['code']}) ! {error['message']}")
|
print(f"{errorMessage[:-2]} ({error['code']}) ! {error['message']}")
|
||||||
else:
|
else:
|
||||||
if keys["VERBOSE"]:
|
if keys["VERBOSE"]:
|
||||||
|
|
Reference in a new issue