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

Handling ReadTimeoutError Exception raised by tweepy

parent 4fb2602a
......@@ -158,7 +158,10 @@ if __name__ == '__main__':
stream.disconnect()
tweetoutput.close()
except Exception as ex:
# Example of errors caught in dev : ReadTimeoutError
logger.error("Unexpected error with stream. Try reconnect")
logger.error(ex.message, ex.args)
logger.error("Error: "+ex)
logger.error("error.args: ", 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