From a1599a9fecdcf606cc6749f46db3f1ec4b63c712 Mon Sep 17 00:00:00 2001 From: b3yond <b3yond@riseup.net> Date: Thu, 20 Jul 2017 10:56:50 +0200 Subject: [PATCH] added timestamp for rate limit exceeded error --- retweetbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/retweetbot.py b/retweetbot.py index 4015c79..4ee4d86 100644 --- a/retweetbot.py +++ b/retweetbot.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import twitter +import datetime import requests import pytoml as toml import trigger @@ -113,6 +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()) sleep(60) except requests.exceptions.ConnectionError: print("[ERROR] Bad Connection.")