Skip to content

Commit

Permalink
Also except LookupError
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Sep 23, 2024
1 parent 00ecf53 commit 8e29e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eessi/testsuite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# (namely: two levels up)
# Note that if we ever move this __init__ file relative to the root of the git tree, we'll need to adjust this
__version__ = get_version(root='../..', relative_to=__file__)
except ImportError:
except (ImportError, LookupError):
# If running from a tarball (e.g. release tarball) downloaded from github, we will not have the .git
# folder available. Thus, setuptools_scm cannot determine the version in any way. Thus, use the
# fallback_version from the pyproject.toml file (which doesn't exist when this is installed as a package,
Expand Down

0 comments on commit 8e29e77

Please sign in to comment.