commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r6148 - trunk/gnue-forms/src/uidrivers/gtk2


From: johannes
Subject: r6148 - trunk/gnue-forms/src/uidrivers/gtk2
Date: Thu, 5 Aug 2004 07:51:54 -0500 (CDT)

Author: johannes
Date: 2004-08-05 07:51:54 -0500 (Thu, 05 Aug 2004)
New Revision: 6148

Modified:
   trunk/gnue-forms/src/uidrivers/gtk2/ErrorHandler.py
Log:
Fixed handling of exception instances


Modified: trunk/gnue-forms/src/uidrivers/gtk2/ErrorHandler.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/gtk2/ErrorHandler.py 2004-08-05 12:33:26 UTC 
(rev 6147)
+++ trunk/gnue-forms/src/uidrivers/gtk2/ErrorHandler.py 2004-08-05 12:51:54 UTC 
(rev 6148)
@@ -34,14 +34,15 @@
 # -----------------------------------------------------------------------------
 
 def handleStartupError (errortext):
-  if isinstance (errortext, types.StringType):
-    errortext = unicode (errortext, i18n.encoding)
+  text = "%s" % errortext
+  if isinstance (text, types.StringType):
+    text = unicode (text, i18n.encoding)
   print
   print '-' * 60
-  print u_("Error: %s") % errortext
+  print o(u_("Error: %s") % text)
   print '-' * 60
 
-  _StartupErrorDisplay ("%s" % errortext)
+  _StartupErrorDisplay (text)
 
   sys.exit ()
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]