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