Skip to content

Commit 2633395

Browse files
committed
chore: keep the version lookup best-effort
1 parent 7995ca8 commit 2633395

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎main.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,11 +1405,11 @@ def _scope_value(scope: ScopeResult, max_len: int = 60) -> str:
14051405

14061406
def _commit_check_version() -> str:
14071407
"""Version of the commit-check CLI that produced these results."""
1408-
from importlib.metadata import PackageNotFoundError, version
1409-
14101408
try:
1409+
from importlib.metadata import version
1410+
14111411
return version("commit-check")
1412-
except PackageNotFoundError:
1412+
except Exception: # noqa: BLE001 - the version is decoration, never fail on it
14131413
return ""
14141414

14151415

0 commit comments

Comments
 (0)