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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 07 Jan 2021 17:22:16 +0100
branch
maintenance
changeset 7964
316184f48d63
parent 7944
6359e8b55505
child 7968
e3d251e74f2d

SyntaxChecker: fixed an issue in the pyflakes messages module causing an exception when trying to report back the result later on.
(grafted from 19bbd56ac5f27673f264da627f72843d3a5ed316)

eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py file | annotate | diff | comparison | revisions
diff -r 6359e8b55505 -r 316184f48d63 eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py
--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py	Sun Jan 03 15:31:46 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