summaryrefslogtreecommitdiff
path: root/src/flake8/exceptions.py
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-07-27 08:15:56 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2016-08-03 16:48:39 -0500
commite14d0e6352efcf78d33c896a425ddc41405acd02 (patch)
tree1993ee784eaf52b1d64bd64fb5c786b7f412f060 /src/flake8/exceptions.py
parent7e806824dfb6934228880585a7caf3c7a81aafc9 (diff)
downloadflake8-e14d0e6352efcf78d33c896a425ddc41405acd02.tar.gz
Serialize Checkers PluginTypeManager to a dict
It seems likely that the multiprocessing module on Windows is not capable of serializing an object with the structure that we have and preserving the attributes we dynamically set on plugins (like the FlakesChecker). To avoid issues like this with all plugins (although we have only found this on Windows with the FlakesChecker), let's try serializing the Checkers PluginTypeManager to a dictionary so that the only object that a Queue is really trying to serialize/deserialize is the FlakesChecker itself. Related to #179
Diffstat (limited to 'src/flake8/exceptions.py')
-rw-r--r--src/flake8/exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flake8/exceptions.py b/src/flake8/exceptions.py
index 71738b2..1ba5966 100644
--- a/src/flake8/exceptions.py
+++ b/src/flake8/exceptions.py
@@ -65,7 +65,7 @@ class PluginRequestedUnknownParameters(Flake8Exception):
def __str__(self):
"""Format our exception message."""
- return self.FORMAT % {'name': self.plugin.plugin_name,
+ return self.FORMAT % {'name': self.plugin['plugin_name'],
'exc': self.original_exception}