From 402e3043f6857ac3a9cfa71865dbd6be719b0d9b Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 19 Sep 2012 23:51:31 +0200 Subject: [PATCH] Steps before log setup should be outside try-except If the steps before the log setup are inside the try-except and they fail, the error will not be visible since the log system hasn't been set up yet. It is better to not catch the exception so that the error will be visible. --- mopidy/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy/__main__.py b/mopidy/__main__.py index 416429bc..35518874 100644 --- a/mopidy/__main__.py +++ b/mopidy/__main__.py @@ -46,8 +46,8 @@ logger = logging.getLogger('mopidy.main') def main(): signal.signal(signal.SIGTERM, exit_handler) loop = gobject.MainLoop() + options = parse_options() try: - options = parse_options() setup_logging(options.verbosity_level, options.save_debug_log) check_old_folders() setup_settings(options.interactive)