Skip to content

Instantly share code, notes, and snippets.

@jonathanmetzman
Created February 12, 2019 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanmetzman/213f9b9210acd5b6147d7aa7701a1f3c to your computer and use it in GitHub Desktop.
Save jonathanmetzman/213f9b9210acd5b6147d7aa7701a1f3c to your computer and use it in GitHub Desktop.
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