ipython / ipython/traitlets

Capturing BaseException in Traitlests and when loading pyconfig files

Open
#494 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.