fix twitter/mastodon interface
This commit is contained in:
parent
5ccfe328ea
commit
b10090a449
|
@ -127,7 +127,7 @@ class RetweetBot(object):
|
||||||
# these lines.
|
# these lines.
|
||||||
except twitter.error.TwitterError:
|
except twitter.error.TwitterError:
|
||||||
print("[ERROR] probably you already retweeted this tweet.")
|
print("[ERROR] probably you already retweeted this tweet.")
|
||||||
return None
|
return ()
|
||||||
except requests.exceptions.ConnectionError:
|
except requests.exceptions.ConnectionError:
|
||||||
print("[ERROR] Bad Connection.")
|
print("[ERROR] Bad Connection.")
|
||||||
sleep(10)
|
sleep(10)
|
||||||
|
|
Loading…
Reference in a new issue