Skip to content

Commit

Permalink
Fix ModuleNotFound exception not being caught
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Apr 28, 2021
1 parent 15c9524 commit 798fc9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ess/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def _version():
g = git.cmd.Git(dir_path)
g.fetch()
return g.describe('--tags')
except (ImportError, git.exc.GitError):
except Exception:
from . import _fixed_version
return _fixed_version.__version__

Expand Down

0 comments on commit 798fc9b

Please sign in to comment.