added more nice debug messages, hopefully useful to the admin
This commit is contained in:
parent
a1599a9fec
commit
b3e00368c4
|
@ -114,7 +114,7 @@ class RetweetBot(object):
|
||||||
return mentions
|
return mentions
|
||||||
except twitter.TwitterError:
|
except twitter.TwitterError:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
print 'Timestamp: {:%d.%m.%Y %H:%M:%S}'.format(datetime.datetime.now())
|
print "[ERROR] Rate Limit Exceeded at {:%d.%m.%Y %H:%M:%S}".format(datetime.datetime.now()) # debug
|
||||||
sleep(60)
|
sleep(60)
|
||||||
except requests.exceptions.ConnectionError:
|
except requests.exceptions.ConnectionError:
|
||||||
print("[ERROR] Bad Connection.")
|
print("[ERROR] Bad Connection.")
|
||||||
|
@ -130,6 +130,7 @@ class RetweetBot(object):
|
||||||
while 1:
|
while 1:
|
||||||
try:
|
try:
|
||||||
self.api.PostRetweet(status.id)
|
self.api.PostRetweet(status.id)
|
||||||
|
print("Tweeted: " + self.format_mastodon(status)) # debug
|
||||||
if status.id > self.last_mention:
|
if status.id > self.last_mention:
|
||||||
self.last_mention = status.id
|
self.last_mention = status.id
|
||||||
return self.format_mastodon(status)
|
return self.format_mastodon(status)
|
||||||
|
|
Loading…
Reference in a new issue