PyDocs

Nav

Python Runtime Services

__unraisablehook__

sys

data · Added in 3.7
Handle an unraisable exception.

The unraisable argument has the following attributes:

* exc_type: Exception type.
* exc_value: Exception value, can be None.
* exc_traceback: Exception traceback, can be None.
* err_msg: Error message, can be None.
* object: Object causing the exception, can be None.
Changed in 3.8
  • 3.8: __unraisablehook__
0 Examples
No examples for sys/__unraisablehook__.
See Also
No see-alsos for sys/__unraisablehook__
0 Notes
No notes for __unraisablehook__