Commit 385ea052 authored by Marco Mariani's avatar Marco Mariani

do not display exceptions twice to the console.

parent 3cee3ff0
......@@ -99,7 +99,11 @@ def main(argv=sys.argv[1:]):
app = SlapOSApp()
if not argv:
argv = ['-h']
return app.run(argv)
try:
return app.run(argv)
except Exception as exc:
# exception has already been printed to the console by the logger.
return 1
if __name__ == '__main__':
......
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