Commit f9201669 authored by Rémy Decoupes's avatar Rémy Decoupes
Browse files

log if Twitter API stream reached a limitation

parent 1dc35d7b
......@@ -71,6 +71,9 @@ class Listener(tweepy.StreamListener):
logger.error("Error on stream twitter: "+str(status_code))
return False
def on_limit(self, track):
logger.error("Twitter limit reached: "+str(track))
if __name__ == '__main__':
# initialize a logger :
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment