mirror of
https://github.com/sigmasternchen/MinervaBot
synced 2025-03-15 07:59: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:
|
try:
|
||||||
api.update_status(status = text[:130])
|
api.update_status(status = text[:130])
|
||||||
break
|
break
|
||||||
except:
|
except tweepy.error.TweepError e:
|
||||||
log("there is an error: " + sys.exc_info()[0])
|
log("there is a twitter error: " + e.message)
|
||||||
text = text[130:]
|
text = text[130:]
|
||||||
time.sleep(4)
|
time.sleep(4)
|
||||||
|
|
||||||
|
@ -153,8 +153,8 @@ if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
api.update_status(status = text[:130])
|
api.update_status(status = text[:130])
|
||||||
break
|
break
|
||||||
except:
|
except tweepy.error.TweepError e:
|
||||||
log("there is an error: " + sys.exc_info()[0])
|
log("there is a twitter error: " + e.message)
|
||||||
text = text[130:]
|
text = text[130:]
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue