Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw committed Aug 13, 2023
1 parent 7f68675 commit 0aa8632
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fastapi_restful/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

if os.python.version < "3.8":
import pkg_resources

try:
__version__ = pkg_resources.get_distribution(__name__).version
except pkg_resources.DistributionNotFound as e:
Expand All @@ -13,6 +14,7 @@
__version__ = "unknown"
else:
import importlib.metadata

try:
__version__ = importlib.metadata.version(__name__)
except importlib.metadata.PackageNotFoundError as e:
Expand Down

0 comments on commit 0aa8632

Please sign in to comment.