From: erykoff Date: Tue, 24 Aug 2021 20:59:24 +0000 (-0700) Subject: Change sys.exit to raise ImportError (#2440) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/0969ca4a46c4a2081be38f7e96a81a74b308c75f?hp=0969ca4a46c4a2081be38f7e96a81a74b308c75f 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: Richard Si <63936253+ichard26@users.noreply.github.com> ---