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

Fix recession on error handle

parent 467a17e9
......@@ -157,6 +157,7 @@ if __name__ == '__main__':
logger.info("Collect tweets : proceeded normally")
stream.disconnect()
tweetoutput.close()
exitscript("User wanted to stop")
except Exception as ex:
# Example of errors caught in dev : ReadTimeoutError
logger.error("Unexpected error with stream. Try reconnect")
......
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