From 9a521537471bd20fa73ea6efd2952ea53a2a4d50 Mon Sep 17 00:00:00 2001 From: Laszlo Sarkozi Date: Wed, 22 Oct 2025 11:46:59 +0200 Subject: [PATCH] fix: set default version to "dev" and handle version retrieval exception --- lcov_cobertura/lcov_cobertura.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lcov_cobertura/lcov_cobertura.py b/lcov_cobertura/lcov_cobertura.py index 394227b..49b9440 100755 --- a/lcov_cobertura/lcov_cobertura.py +++ b/lcov_cobertura/lcov_cobertura.py @@ -25,7 +25,11 @@ else: from importlib.metadata import version -__version__ = version('lcov_cobertura') +__version__ = "dev" +try: + __version__ = version('lcov_cobertura') +except Exception: + pass CPPFILT = "c++filt" HAVE_CPPFILT = False