From 027b7a53fe9212853062da352c464c4277ade510 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sat, 16 Aug 2014 23:04:01 +0200 Subject: [PATCH] main: Log uncaught exceptions --- mopidy/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mopidy/commands.py b/mopidy/commands.py index 2a0b6f48..237ec86b 100644 --- a/mopidy/commands.py +++ b/mopidy/commands.py @@ -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)