diff options
author | Davin Potts <python@discontinuity.net> | 2016-09-08 19:40:36 (GMT) |
---|---|---|
committer | Davin Potts <python@discontinuity.net> | 2016-09-08 19:40:36 (GMT) |
commit | 37156a70b95b2e8efde26cc6c1b5ffd6830b664e (patch) | |
tree | 8c9a0187d15be8ff414e7a78f7c5a9d014c9f08b | |
parent | 014d52ffc4586e30a1fa4cbedc1532419a5916a1 (diff) | |
download | cpython-37156a70b95b2e8efde26cc6c1b5ffd6830b664e.zip cpython-37156a70b95b2e8efde26cc6c1b5ffd6830b664e.tar.gz cpython-37156a70b95b2e8efde26cc6c1b5ffd6830b664e.tar.bz2 |
Issue #21201: Improves readability of multiprocessing error message from server to client for certain exceptions
-rw-r--r-- | Lib/multiprocessing/managers.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py index c559b55..b175470 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) @@ -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 ---- |