[issue42526] Exceptions in asyncio.Server callbacks are not retrievable

Tom report at bugs.python.org
Tue Dec 1 12:55:06 EST 2020


Tom <tom at collider.in> added the comment:

How do you suggest one might test code in a Server callback with asyncio?

Of course, I don't want any old exception to affect another client connection,
only an exception which is uncaught up to the handler coro. And I'm not
suggesting that it happen by default, only that it be possible.

With this, the behaviour would perfectly align with the asyncio.gather
functionality, and its 'return_exceptions' kwarg.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42526>
_______________________________________


More information about the Python-bugs-list mailing list