From: Daniel Feldroy Date: Mon, 21 Sep 2020 18:18:58 +0000 (-0700) Subject: Cheat with ugly X-Git-Tag: 1.5.2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df2be962556e9e6e6ee13550f69fed280991c5c5;p=cached-property.git Cheat with ugly --- 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__))