]> granicus.if.org Git - python/commitdiff
Issue #21201: Improves readability of multiprocessing error message from server to...
authorDavin Potts <python@discontinuity.net>
Thu, 8 Sep 2016 18:07:13 +0000 (13:07 -0500)
committerDavin Potts <python@discontinuity.net>
Thu, 8 Sep 2016 18:07:13 +0000 (13:07 -0500)
Lib/multiprocessing/managers.py
Misc/NEWS

index 77639653ab86c7038b1f0c1622c1e512dea5d72c..f2cee0c38ce995d2efbc2541b9a16488d7695745 100644 (file)
@@ -287,7 +287,7 @@ class Server(object):
                 try:
                     send(msg)
                 except Exception, e:
-                    send(('#UNSERIALIZABLE', repr(msg)))
+                    send(('#UNSERIALIZABLE', format_exc()))
             except Exception, e:
                 util.info('exception in thread serving %r',
                         threading.current_thread().name)
index dc4aa84bd90173d462e4b66e8e3f7115b5cd5808..21cca5b688a76269629dbd153c8f0fd8def308eb 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -125,6 +125,9 @@ Library
 
 - Issue #25455: Fixed a crash in repr of cElementTree.Element with recursive tag.
 
+- Issue #21201: Improves readability of multiprocessing error message.  Thanks
+  to Wojciech Walczak for patch.
+
 IDLE
 ----