From 8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb Mon Sep 17 00:00:00 2001 From: necoro <> Date: Mon, 27 Aug 2007 07:30:38 +0000 Subject: Change to absolute_imports; Warning: definitly broken --- portato/gui/gtk/exception_handling.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'portato/gui/gtk/exception_handling.py') diff --git a/portato/gui/gtk/exception_handling.py b/portato/gui/gtk/exception_handling.py index e9d19d1..3d89560 100644 --- a/portato/gui/gtk/exception_handling.py +++ b/portato/gui/gtk/exception_handling.py @@ -11,6 +11,8 @@ # # Written by René 'Necoro' Neumann +from __future__ import absolute_import + import gtk, pango, gobject import sys, traceback @@ -18,7 +20,7 @@ from threading import Thread from gettext import lgettext as _ from StringIO import StringIO -from portato.helper import error +from ...helper import error class GtkThread (Thread): def run(self): @@ -29,10 +31,9 @@ class GtkThread (Thread): except: type, val, tb = sys.exc_info() try: - try: - sys.excepthook(type, val, tb, thread = self.getName()) - except TypeError: - raise type, val, tb # let normal thread handle it + sys.excepthook(type, val, tb, thread = self.getName()) + except TypeError: + raise type, val, tb # let normal thread handle it finally: del type, val, tb -- cgit v1.2.3