]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #21201: Improves readability of multiprocessing error message from server to...
authorDavin Potts <python@discontinuity.net>
Thu, 8 Sep 2016 19:40:36 +0000 (14:40 -0500)
committerDavin Potts <python@discontinuity.net>
Thu, 8 Sep 2016 19:40:36 +0000 (14:40 -0500)
Lib/multiprocessing/managers.py
Misc/NEWS

index c559b55a3fde03efeef88b766c7261fd8a60b65d..b175470db960c34e6fa42950140535b5a9571ec1 100644 (file)
@@ -275,7 +275,7 @@ class Server(object):
                 try:
                     send(msg)
                 except Exception as e:
-                    send(('#UNSERIALIZABLE', repr(msg)))
+                    send(('#UNSERIALIZABLE', format_exc()))
             except Exception as e:
                 util.info('exception in thread serving %r',
                         threading.current_thread().name)
index a18ceb674e875ca61d16f35e0f2990d7ccb03071..9125caf9fab16b6b3a4e01f53a15432bf9a6ea4d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -221,6 +221,9 @@ Library
 - Issue #27930: Improved behaviour of logging.handlers.QueueListener.
   Thanks to Paulo Andrade and Petr Viktorin for the analysis and patch.
 
+- Issue #21201: Improves readability of multiprocessing error message.  Thanks
+  to Wojciech Walczak for patch.
+
 IDLE
 ----