aboutsummaryrefslogtreecommitdiff
path: root/internal/lib/gstorage_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lib/gstorage_client.py')
-rwxr-xr-xinternal/lib/gstorage_client.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/internal/lib/gstorage_client.py b/internal/lib/gstorage_client.py
index 686d8afc..ebf60871 100755
--- a/internal/lib/gstorage_client.py
+++ b/internal/lib/gstorage_client.py
@@ -157,10 +157,9 @@ class StorageClient(base_cloud_client.BaseCloudApiClient):
Raises:
errors.ResourceNotFoundError: when file is not found.
"""
- item = utils.RetryException(errors.ResourceNotFoundError,
- max_retry=self.GET_OBJ_MAX_RETRY,
- functor=self.Get,
- sleep=self.GET_OBJ_RETRY_SLEEP,
- bucket_name=bucket_name,
- object_name=object_name)
+ item = utils.RetryExceptionType(
+ errors.ResourceNotFoundError,
+ max_retries=self.GET_OBJ_MAX_RETRY, functor=self.Get,
+ sleep_multiplier=self.GET_OBJ_RETRY_SLEEP,
+ bucket_name=bucket_name, object_name=object_name)
return item["selfLink"]