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

WIP: working on auto-archiver - error handling (ref. #1)

parent 3c43ae61
......@@ -337,6 +337,8 @@ while True:
logging.debug(apiresult)
except Exception as e:
if config.options.exit_on_error:
logging.critical(e)
sys.exit(1)
else:
logging.error(e)
......
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