sys not imported which throws exception before quitting gracefully

This commit is contained in:
Damien Churchill 2009-02-18 17:36:16 +00:00
parent d0545b6898
commit 7fde2aff36

View file

@ -63,4 +63,5 @@ class UI:
ui = ConsoleUI(ui_args).run()
except ImportError:
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)