There was an error while loading. Please reload this page.
1 parent 4f75a75 commit 20b7260Copy full SHA for 20b7260
google/cloud/firestore_v1/__init__.py
@@ -18,9 +18,13 @@
18
19
"""Python idiomatic client for Google Cloud Firestore."""
20
21
-from pkg_resources import get_distribution
22
23
-__version__ = get_distribution("google-cloud-firestore").version
+import pkg_resources
+
24
+try:
25
+ __version__ = pkg_resources.get_distribution("google-cloud-firestore").version
26
+except pkg_resources.DistributionNotFound:
27
+ __version__ = None
28
29
from google.cloud.firestore_v1 import types
30
from google.cloud.firestore_v1._helpers import GeoPoint
0 commit comments