mirror of
https://github.com/sigmasternchen/MinervaBot
synced 2025-03-15 07:59:00 +00:00
...
This commit is contained in:
parent
30a9e4804c
commit
676c286eba
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -142,7 +142,7 @@ if __name__ == "__main__":
|
|||
try:
|
||||
api.update_status(status = text[:130])
|
||||
break
|
||||
except tweepy.error.TweepError e:
|
||||
except tweepy.error.TweepError as e:
|
||||
log("there is a twitter error: " + e.message)
|
||||
text = text[130:]
|
||||
time.sleep(4)
|
||||
|
@ -153,7 +153,7 @@ if __name__ == "__main__":
|
|||
try:
|
||||
api.update_status(status = text[:130])
|
||||
break
|
||||
except tweepy.error.TweepError e:
|
||||
except tweepy.error.TweepError as e:
|
||||
log("there is a twitter error: " + e.message)
|
||||
text = text[130:]
|
||||
time.sleep(1)
|
||||
|
|
Loading…
Reference in a new issue