Commit cef40f3d authored by Victor Stinner's avatar Victor Stinner

asyncio: Handle error handler: enhance formatting of the callback

parent a428bf15
......@@ -89,8 +89,8 @@ class Handle:
try:
self._callback(*self._args)
except Exception as exc:
msg = 'Exception in callback {}{!r}'.format(self._callback,
self._args)
cb = _format_callback(self._callback, self._args)
msg = 'Exception in callback {}'.format(cb)
self._loop.call_exception_handler({
'message': msg,
'exception': exc,
......
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