ignore error 385 if not verbose

This commit is contained in:
Mylloon 2022-08-07 02:43:14 +02:00
parent 5e87ac7aec
commit b4082fad6e
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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"]: