summaryrefslogtreecommitdiffstats
path: root/Lib/copyreg.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/copyreg.py')
-rw-r--r--Lib/copyreg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/copyreg.py b/Lib/copyreg.py
index 67f5bb0..ed29d71 100644
--- a/Lib/copyreg.py
+++ b/Lib/copyreg.py
@@ -70,7 +70,7 @@ def _reduce_ex(self, proto):
except AttributeError:
if getattr(self, "__slots__", None):
raise TypeError("a class that defines __slots__ without "
- "defining __getstate__ cannot be pickled")
+ "defining __getstate__ cannot be pickled") from None
try:
dict = self.__dict__
except AttributeError: