There was an error while loading. Please reload this page.
1 parent 43e153b commit 021ee30Copy full SHA for 021ee30
1 file changed
src/tentaclio_postgres/__init__.py
@@ -1,13 +1,17 @@
1
"""This package implements the tentaclio postgres client"""
2
3
+from importlib.metadata import PackageNotFoundError
4
from importlib.metadata import version as _version
5
6
from tentaclio import * # noqa
7
8
from .clients.postgres_client import PostgresClient
9
from .streams.postgres_handler import PostgresURLHandler
10
-__version__ = _version("tentaclio-postgres")
11
+try:
12
+ __version__ = _version("tentaclio-postgres")
13
+except PackageNotFoundError:
14
+ __version__ = "0.0.0"
15
16
# Db registry
17
DB_REGISTRY.register("postgresql", PostgresClient) # type: ignore
0 commit comments