Commit 37156a70 authored by Davin Potts's avatar Davin Potts

Issue #21201: Improves readability of multiprocessing error message from...

Issue #21201: Improves readability of multiprocessing error message from server to client for certain exceptions
parent 014d52ff
...@@ -275,7 +275,7 @@ class Server(object): ...@@ -275,7 +275,7 @@ class Server(object):
try: try:
send(msg) send(msg)
except Exception as e: except Exception as e:
send(('#UNSERIALIZABLE', repr(msg))) send(('#UNSERIALIZABLE', format_exc()))
except Exception as e: except Exception as e:
util.info('exception in thread serving %r', util.info('exception in thread serving %r',
threading.current_thread().name) threading.current_thread().name)
......
...@@ -221,6 +221,9 @@ Library ...@@ -221,6 +221,9 @@ Library
- Issue #27930: Improved behaviour of logging.handlers.QueueListener. - Issue #27930: Improved behaviour of logging.handlers.QueueListener.
Thanks to Paulo Andrade and Petr Viktorin for the analysis and patch. 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 IDLE
---- ----
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment