From 547b2edaaa6f24e74a110c999df4121935131d62 Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 28 Jun 2025 04:42:10 +0200 Subject: [PATCH] Clean version --- src/gisaf/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gisaf/__init__.py b/src/gisaf/__init__.py index 710f782..0028fe7 100644 --- a/src/gisaf/__init__.py +++ b/src/gisaf/__init__.py @@ -4,7 +4,7 @@ try: from dunamai import Version, Style __version__ = Version.from_git().serialize(style=Style.SemVer, dirty=True) -except ImportError: +except (ImportError, RuntimeError): # __name__ could be used if the package name is the same # as the directory - not the case here # __version__ = importlib.metadata.version(__name__)