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

Handle twitter error code 420 : too many login

parent 2ae7f6cb
......@@ -163,6 +163,8 @@ if __name__ == '__main__':
logger.error("Unexpected error with stream. Try reconnect")
logger.error("Error: "+str(ex))
logger.error("error.args: ", str(ex.args))
# Avoid Twitter error 420 : too many login. Wait for 10 seconds
time.sleep(10)
continue
# logger.info("Collect tweets : aborted")
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