kurozael / twitter-contest-bot

Will poll for Retweet Contests and retweet them. Inspired by http://www.hscott.net/twitter-contest-winning-as-a-service/
236 stars 107 forks source link

Remaining on line 73 #16

Closed DanCRichards closed 6 years ago

DanCRichards commented 8 years ago

Traceback (most recent call last): File "/Users/admin/Desktop/twitter-contest-bot-master/main.py", line 240, in CheckRateLimit() File "/Users/admin/Desktop/twitter-contest-bot-master/main.py", line 73, in CheckRateLimit percent = float(remaining)/float(limit)*100 NameError: global name 'remaining' is not defined

Exception in thread Thread-1: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 1073, in run self.function(_self.args, _self.kwargs) File "/Users/admin/Desktop/twitter-contest-bot-master/main.py", line 73, in CheckRateLimit percent = float(remaining)/float(limit)100 NameError: global name 'remaining' is not defined

Any ideas?