Skip to content

Commit

Permalink
Make sure that we get a valid version
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidner committed Dec 11, 2023
1 parent 3fbf142 commit 8d7589c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
@task
def version(c):
version_response = conda_run(c, "hatch version")
return version_response.stdout.strip()
ver = version_response.stdout.strip()
assert ver != "", "Could not determine version"
return ver


@task
Expand Down

0 comments on commit 8d7589c

Please sign in to comment.