Let the python interpreter handle it and actually exit with the right
status, otherwise when a sub-command calls sys.exit(1) we end up exiting
0 instead, which is confusing if not dangerous.
Signed-off-by: Julien Cristau <jcristau@debian.org>
logger.log([msg])
sys.exit(1)
except SystemExit:
logger.log([msg])
sys.exit(1)
except SystemExit:
except:
if logger:
for line in traceback.format_exc().split('\n')[:-1]:
except:
if logger:
for line in traceback.format_exc().split('\n')[:-1]: