From: Davin Potts Date: Thu, 8 Sep 2016 19:40:36 +0000 (-0500) Subject: Issue #21201: Improves readability of multiprocessing error message from server to... X-Git-Tag: v3.6.0b1~255^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37156a70b95b2e8efde26cc6c1b5ffd6830b664e;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 c559b55a3fde..b175470db960 100644 --- a/Lib/multiprocessing/managers.py +++ b/Lib/multiprocessing/managers.py @@ -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) diff --git a/Misc/NEWS b/Misc/NEWS index a18ceb674e87..9125caf9fab1 100644 --- 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 ----