Created
February 12, 2019 01:37
-
-
Save jonathanmetzman/213f9b9210acd5b6147d7aa7701a1f3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/python/google_cloud_utils/storage.py b/src/python/google_cloud_utils/storage.py | |
index 6112529..2f59cfb 100644 | |
--- a/src/python/google_cloud_utils/storage.py | |
+++ b/src/python/google_cloud_utils/storage.py | |
@@ -509,7 +509,8 @@ class GcsBlobInfo(object): | |
def from_key(key): | |
try: | |
return GcsBlobInfo(blobs_bucket(), key) | |
- except Exception: | |
+ except Exception as exception: | |
+ logs.log_error('Failed to get blob from key %s' % str(exception)) | |
return None | |
@staticmethod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment