Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: harden version data gathering against DistributionNotFound (#212)
  • Loading branch information
crwilcox committed Oct 6, 2020
1 parent 4f75a75 commit 20b7260
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions google/cloud/firestore_v1/__init__.py
Expand Up @@ -18,9 +18,13 @@

"""Python idiomatic client for Google Cloud Firestore."""

from pkg_resources import get_distribution

__version__ = get_distribution("google-cloud-firestore").version
import pkg_resources

try:
__version__ = pkg_resources.get_distribution("google-cloud-firestore").version
except pkg_resources.DistributionNotFound:
__version__ = None

from google.cloud.firestore_v1 import types
from google.cloud.firestore_v1._helpers import GeoPoint
Expand Down

0 comments on commit 20b7260

Please sign in to comment.