Skip to content

Commit df2be96

Browse files
committed
Cheat with ugly
1 parent 24dfeba commit df2be96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def read(fname):
2626
try:
2727
import wheel
2828
import twine
29-
except (ImportError, ModuleNotFoundError):
30-
raise ModuleNotFoundError('Run "pip install wheel twine"')
29+
except: # Yes, this is not how we usually do try/except
30+
raise ImportError('Run "pip install wheel twine"')
3131
os.system("python setup.py sdist bdist_wheel")
3232
os.system("twine upload dist/*")
3333
os.system("git tag -a %s -m 'version %s'" % (__version__, __version__))

0 commit comments

Comments
 (0)