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

Handle ProtocolError

parent cf96a3c0
......@@ -159,10 +159,10 @@ if __name__ == '__main__':
tweetoutput.close()
sys.exit(1)
except Exception as ex:
# Example of errors caught in dev : ReadTimeoutError
# Example of errors caught in dev : ReadTimeoutError / ProtocolError
logger.error("Unexpected error with stream. Try reconnect")
logger.error("Error: "+ex)
logger.error("error.args: ", ex.args)
logger.error("Error: "+str(ex))
logger.error("error.args: ", str(ex.args))
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