mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
asyncio: Handle error handler: enhance formatting of the callback
This commit is contained in:
parent
72502c12a7
commit
17b53f1301
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue