From 0c1d5d8be71aa8d07c3c43dacc91b04a91ca1b80 Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Tue, 20 Mar 2018 15:10:51 -0700 Subject: VVP fixing flake 8 errors during build modifed files to pass flake8 Change-Id: Id0edd7364aec13d5b01c12f6a9cac03ed3c70d93 Issue-ID: VVP-42 Signed-off-by: stark, steven --- services/api/api_rados.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'services/api/api_rados.py') diff --git a/services/api/api_rados.py b/services/api/api_rados.py index cdad7d4..9a130b1 100644 --- a/services/api/api_rados.py +++ b/services/api/api_rados.py @@ -82,7 +82,7 @@ class APIRados: logger.error("Bucket not found. Retry #%s" % counter+1) time.sleep(session.wait_until_time_pause_long) else: - raise TimeoutError("Max retries exceeded, failing test...") + raise Exception("Max retries exceeded, failing test...") grants = bucket.list_grants() return grants @@ -97,7 +97,7 @@ class APIRados: counter+1, Constants.RGWAConstants.BUCKET_RETRIES_NUMBER)) time.sleep(session.wait_until_time_pause_long) else: - raise TimeoutError("Max retries exceeded, failing test...") + raise Exception("Max retries exceeded, failing test...") logger.debug("bucket are ready to continue!") return True -- cgit 1.2.3-korg