PyDocs

Nav

Python Runtime Services

unraisablehook

sys

function · Added in 3.8
  • unraisablehook(unraisable, /)
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.15
  • 3.15: Exceptions are now printed with colorful text.
0 Examples
No examples for sys/unraisablehook.
See Also
No see-alsos for sys/unraisablehook
0 Notes
No notes for unraisablehook