Capturing BaseException in Traitlests and when loading pyconfig files
Open
- Dominant language
- Python
- Stars
- 653
- Forks
- 217
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 2
Description
Using a naked `except:` captures `BaseExeption`, which includes `KeyboardException`:
Happens in many places in `traitlets.traitlets.py` and one more in `loader.py`:
https://github.com/ipython/traitlets/blob/d07d70d81e82f655ac36841415721d5246876538/traitlets/config/loader.py#L986-L989
Contributor guide
Assessment
This issue has not been assessed yet.