Commit a746ad9c authored by Michał Woźniak's avatar Michał Woźniak

Ctrl-C handled better now

parent 83dc4901
......@@ -14,8 +14,12 @@ import fnmatch
import shutil
import logging
import threading
import signal
def signal_handler(signal, frame):
logging.info('Quitting...')
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
"""
thanks to Jakub Bacic:
......@@ -464,9 +468,6 @@ while True:
del import_logs.Recorder.exc
raise exc
except KeyboardInterrupt:
pass
except IngestionException as e:
errmsg, filename, lineno = e.args
for msg in errmsg.split('\n'):
......
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