Commits

Josh Ourisman committed f4ea7a7

catching 401 error on _get_cloud_obj

  • Participants
  • Parent commits 157d8e4
  • Branches authorization-required-fix

Comments (0)

Files changed (1)

cumulus/storage.py

         """
         Helper function to get retrieve the requested Cloud Files Object.
         """
-        return self.container.get_object(name)
+        try:
+            return self.container.get_object(name)
+        except ResponseError as exc:
+            if exc.status == 401:
+                return None
+            else:
+                raise
 
     def _open(self, name, mode='rb'):
         """