From b3e00368c4fab2d306660aa568b9943a4a4d800d Mon Sep 17 00:00:00 2001 From: b3yond Date: Thu, 20 Jul 2017 11:08:05 +0200 Subject: [PATCH] added more nice debug messages, hopefully useful to the admin --- retweetbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/retweetbot.py b/retweetbot.py index 4ee4d86..3ec7812 100644 --- a/retweetbot.py +++ b/retweetbot.py @@ -114,7 +114,7 @@ class RetweetBot(object): return mentions except twitter.TwitterError: 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) except requests.exceptions.ConnectionError: print("[ERROR] Bad Connection.") @@ -130,6 +130,7 @@ class RetweetBot(object): while 1: try: self.api.PostRetweet(status.id) + print("Tweeted: " + self.format_mastodon(status)) # debug if status.id > self.last_mention: self.last_mention = status.id return self.format_mastodon(status)