From 94dca6e0921fe3b5b5d951d388aa7108dd65cb12 Mon Sep 17 00:00:00 2001 From: Boris 'billiob' Faure Date: Mon, 21 Sep 2009 22:20:36 +0200 Subject: [PATCH] [EFL] print exception when failing loading the EFL UI --- amsn2/gui/front_ends/efl/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/amsn2/gui/front_ends/efl/__init__.py b/amsn2/gui/front_ends/efl/__init__.py index ad32ed00..6138a6b2 100644 --- a/amsn2/gui/front_ends/efl/__init__.py +++ b/amsn2/gui/front_ends/efl/__init__.py @@ -1,6 +1,7 @@ from amsn2 import gui import sys +import traceback # Here we load the actual front end. # We need to import the front end module and return it @@ -9,7 +10,9 @@ def load(): try: import efl return efl - except ImportError: + except ImportError, e: + etype, value, tb = sys.exc_info() + traceback.print_exception(etype, value, tb.tb_next) return None