From: Davin Potts Date: Thu, 8 Sep 2016 18:07:13 +0000 (-0500) Subject: Issue #21201: Improves readability of multiprocessing error message from server to... X-Git-Tag: v2.7.13rc1~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=280290adb8dc3d2337f5b2bc25b824d93a9434e8;p=thirdparty%2FPython%2Fcpython.git Issue #21201: Improves readability of multiprocessing error message from server to client for certain exceptions --- diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py index 77639653ab86..f2cee0c38ce9 100644 --- a/Lib/multiprocessing/managers.py +++ b/Lib/multiprocessing/managers.py @@ -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) diff --git a/Misc/NEWS b/Misc/NEWS index dc4aa84bd901..21cca5b688a7 100644 --- 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 ----