DEV Community

loading...

Discussion on: Catching every single exception with Python

Collapse
moshe profile image
Moshe Zada

If your use case is logging the exception use logger.exception("Cancelled error") which logs the exception and the stacktrace