summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/exception_handling.py
diff options
context:
space:
mode:
authornecoro <>2007-08-27 07:30:38 +0000
committernecoro <>2007-08-27 07:30:38 +0000
commit8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb (patch)
treecbc6522de7532adc6a85ff6e816e186b077f2cc4 /portato/gui/gtk/exception_handling.py
parentc16b547f2c2bc23bef3a93b1987715c00c521718 (diff)
downloadportato-8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb.tar.gz
portato-8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb.tar.bz2
portato-8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb.zip
Change to absolute_imports; Warning: definitly broken
Diffstat (limited to '')
-rw-r--r--portato/gui/gtk/exception_handling.py11
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