Skip to content

Commit f6a2eaa

Browse files
committed
Revert "Removed useless if statement."
1 parent eddf2f2 commit f6a2eaa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
else:
1717
raise RuntimeError("Could not grab version string")
1818

19-
if version.endswith(("a", "b", "rc")):
19+
if not version:
20+
raise RuntimeError('version is not set')
21+
22+
if version.endswith(('a', 'b', 'rc')):
2023
# append version identifier based on commit count
2124
try:
2225
import subprocess

0 commit comments

Comments
 (0)