Skip to content

Commit

Permalink
🚨Be more precise with exception
Browse files Browse the repository at this point in the history
  • Loading branch information
hf-krechan committed Dec 22, 2023
1 parent 851ac62 commit f664c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bo4e/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
Version information for the bo4e package.
"""
import re
from importlib.metadata import version
from importlib.metadata import PackageNotFoundError, version

try:
__version__ = version("bo4e")
except Exception:
except PackageNotFoundError:
__version__ = "0.0.0"
# Please keep this name in sync with the name of the project in pyproject.toml
# This name is the name of the package on pypi.org
Expand Down

0 comments on commit f664c36

Please sign in to comment.