Skip to content
Unverified Commit 0969ca4a authored by erykoff's avatar erykoff Committed by GitHub
Browse files

Change sys.exit to raise ImportError (#2440)



The fix for #1688 in #1761 breaks help("modules") introspection and also leads
to unhappy results when inadvertently importing blackd from Python. Basically
the sys.exit(-1) causes the whole Python REPL to exit -- not great to suffice.

Commit history before merge:

* Change sys.exit to Raise.
* Add #2440 to changelog.
* Fix lint error from prettier
* Remove exception chain for more helpful user message.

Co-authored-by: default avatarRichard Si <63936253+ichard26@users.noreply.github.com>
parent b97a4ac4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment