From df2be962556e9e6e6ee13550f69fed280991c5c5 Mon Sep 17 00:00:00 2001 From: Daniel Feldroy Date: Mon, 21 Sep 2020 11:18:58 -0700 Subject: [PATCH] Cheat with ugly --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index e5398c9..6759c39 100755 --- a/setup.py +++ b/setup.py @@ -26,8 +26,8 @@ if sys.argv[-1] == "publish": try: import wheel import twine - except (ImportError, ModuleNotFoundError): - raise ModuleNotFoundError('Run "pip install wheel twine"') + except: # Yes, this is not how we usually do try/except + raise ImportError('Run "pip install wheel twine"') os.system("python setup.py sdist bdist_wheel") os.system("twine upload dist/*") os.system("git tag -a %s -m 'version %s'" % (__version__, __version__)) -- 2.30.2