added timestamp for rate limit exceeded error

This commit is contained in:
b3yond 2017-07-20 10:56:50 +02:00
parent c7e208f020
commit a1599a9fec

View file

@ -1,6 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
import twitter import twitter
import datetime
import requests import requests
import pytoml as toml import pytoml as toml
import trigger import trigger
@ -113,6 +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())
sleep(60) sleep(60)
except requests.exceptions.ConnectionError: except requests.exceptions.ConnectionError:
print("[ERROR] Bad Connection.") print("[ERROR] Bad Connection.")