nicer exceptions on cli-commands
@@ -32,12 +32,12 @@ def main():
if py3:
py3.notify_user('Setup interrupted')
sys.exit(0)
- except Exception as e:
- if py3:
+ except Exception:
+ if py3 and not py3.config.get('cli_command'):
py3.report_exception('Setup error')
else:
# we cannot report this Exception
- raise e
+ raise
sys.exit(2)
try:
