From 8e29e778041c458d8ed2eccc0067fee9dec5d892 Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Mon, 23 Sep 2024 23:54:35 +0200 Subject: [PATCH] Also except LookupError --- eessi/testsuite/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eessi/testsuite/__init__.py b/eessi/testsuite/__init__.py index e94fc313..58f2bfb8 100644 --- a/eessi/testsuite/__init__.py +++ b/eessi/testsuite/__init__.py @@ -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,