Speaker
Mario Corchero
Material
Note
- Logging exception
logging.exception("")logging.info("", exc_info=True)
- Exception techniques
- Reraise
- Chaining exception
raise Exception() from e
- Eliding previous exception
raise Exception() from None
- False friends:
NotImpelmented- Use
raise NotImplementedError
- Use
- Exception attributes
args__traceback__
- New magic in 3.8
sys.unraisablehookthreading.excepthook