diff options
author | necoro <> | 2007-08-27 07:30:38 +0000 |
---|---|---|
committer | necoro <> | 2007-08-27 07:30:38 +0000 |
commit | 8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb (patch) | |
tree | cbc6522de7532adc6a85ff6e816e186b077f2cc4 /portato/gui/gtk/exception_handling.py | |
parent | c16b547f2c2bc23bef3a93b1987715c00c521718 (diff) | |
download | portato-8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb.tar.gz portato-8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb.tar.bz2 portato-8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb.zip |
Change to absolute_imports; Warning: definitly broken
Diffstat (limited to 'portato/gui/gtk/exception_handling.py')
-rw-r--r-- | portato/gui/gtk/exception_handling.py | 11 |
1 files changed, 6 insertions, 5 deletions
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 |