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)