Fixed a little issue in the error message handler. Py3_only

Thu, 03 Jul 2014 19:02:29 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 03 Jul 2014 19:02:29 +0200
branch
Py3_only
changeset 4005
69a435ac9067
parent 3533
123dd8b3189a
child 4006
0b4b5ab05afc

Fixed a little issue in the error message handler.
(grafted from 9f5d0a07e69b47c48d9aa4e309c720165c94d1c0)

E5Gui/E5ErrorMessage.py file | annotate | diff | comparison | revisions
diff -r 123dd8b3189a -r 69a435ac9067 E5Gui/E5ErrorMessage.py
--- a/E5Gui/E5ErrorMessage.py	Fri Apr 25 18:34:35 2014 +0200
+++ b/E5Gui/E5ErrorMessage.py	Thu Jul 03 19:02:29 2014 +0200
@@ -107,7 +107,7 @@
                 messageType = QCoreApplication.translate(
                     "E5ErrorMessage", "Fatal Error:")
             if isinstance(message, bytes):
-                message = message.decode()
+                message = Utilities.decodeBytes(message)
             message = message.replace("\r\n", "<br/>")\
                              .replace("\n", "<br/>")\
                              .replace("\r", "<br/>")

eric ide

mercurial