From 0a51fc0c15f031f8f05d8c510adf7b325ead1c7f Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 21 Feb 2009 05:24:41 +0000 Subject: [PATCH] Fix error reporting when there is a problem starting a UI --- deluge/ui/ui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deluge/ui/ui.py b/deluge/ui/ui.py index 52deea44d..f0af1cb82 100644 --- a/deluge/ui/ui.py +++ b/deluge/ui/ui.py @@ -22,6 +22,7 @@ # Boston, MA 02110-1301, USA. # +import sys import deluge.configmanager @@ -61,7 +62,8 @@ class UI: log.info("Starting ConsoleUI..") from deluge.ui.console.main import ConsoleUI ui = ConsoleUI(ui_args).run() - except ImportError: + except ImportError, e: + log.exception(e) log.error("Unable to find the requested UI: %s. Please select a different UI with the '-u' option or alternatively use the '-s' option to select a different default UI.", selected_ui) import sys sys.exit(0)