From 023429e38a5c49ff4dba5913aa7c92cc547fa347 Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 28 Jun 2025 04:20:38 +0200 Subject: [PATCH] Version harden --- 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__)