Skip to content

Commit

Permalink
Fix cli version crash for pypi installs (#704)
Browse files Browse the repository at this point in the history
Catch all exceptions
  • Loading branch information
stefsmeets authored Jan 25, 2024
1 parent 46ec5b6 commit 719f65c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/duqtools/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def cli_version(**kwargs):
try:
repo = git.Repo(Path(__file__), search_parent_directories=True)
sha = repo.head.object.hexsha
except (OSError, ValueError):
except BaseException:
sha = '???'

string += f' (rev: {sha})'
Expand Down

0 comments on commit 719f65c

Please sign in to comment.