Skip to content

Commit

Permalink
Revert "Removed useless if statement."
Browse files Browse the repository at this point in the history
  • Loading branch information
Sengolda committed Nov 19, 2021
1 parent eddf2f2 commit f6a2eaa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
else:
raise RuntimeError("Could not grab version string")

if version.endswith(("a", "b", "rc")):
if not version:
raise RuntimeError('version is not set')

if version.endswith(('a', 'b', 'rc')):
# append version identifier based on commit count
try:
import subprocess
Expand Down

0 comments on commit f6a2eaa

Please sign in to comment.