main: Log uncaught exceptions

(cherry picked from commit 027b7a53fe)
This commit is contained in:
Stein Magnus Jodal 2014-08-16 23:04:01 +02:00
parent c230a0f64c
commit 1484514224

View File

@ -280,6 +280,8 @@ class RootCommand(Command):
exit_status_code = 1
except KeyboardInterrupt:
logger.info('Interrupted. Exiting...')
except Exception:
logger.exception('Uncaught exception')
finally:
loop.quit()
self.stop_frontends(frontend_classes)