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
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.")