E5Gui/E5ErrorMessage.py

branch
Py3_only
changeset 4005
69a435ac9067
parent 3160
209a07d7e401
--- 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