SyntaxChecker: fixed an issue in the pyflakes messages module causing an exception when trying to report back the result later on.

Thu, 07 Jan 2021 17:22:16 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 07 Jan 2021 17:22:16 +0100
changeset 7963
19bbd56ac5f2
parent 7962
4614e724b083
child 7965
48fbf9149d16

SyntaxChecker: fixed an issue in the pyflakes messages module causing an exception when trying to report back the result later on.

eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py file | annotate | diff | comparison | revisions
diff -r 4614e724b083 -r 19bbd56ac5f2 eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py
--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py	Wed Jan 06 14:06:40 2021 +0100
+++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py	Thu Jan 07 17:22:16 2021 +0100
@@ -685,6 +685,8 @@
         @param error error details
         """
         Message.__init__(self, filename, loc)
+        if not isinstance(error, str):
+            error = str(error)
         self.message_args = (error,)
 
 

eric ide

mercurial