Issue #21201: Improves readability of multiprocessing error message from server to client for certain exceptions

This commit is contained in:
Davin Potts 2016-09-08 14:47:23 -05:00
commit 70897ec54c
2 changed files with 4 additions and 1 deletions

View File

@ -283,7 +283,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)

View File

@ -248,6 +248,9 @@ Library
- Issue #6766: Distributed reference counting added to multiprocessing
to support nesting of shared values / proxy objects.
- Issue #21201: Improves readability of multiprocessing error message. Thanks
to Wojciech Walczak for patch.
C API
-----