Skip to content

Commit fbb01b5

Browse files
committed
Acquiesce flake8
Signed-off-by: Matthias Büchse <[email protected]>
1 parent 172bb66 commit fbb01b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/iaas/mandatory-services/mandatory-iaas-services.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ def check_for_s3_and_swift(conn: openstack.connection.Connection, s3_credentials
147147
if s3_credentials:
148148
try:
149149
s3 = s3_conn(s3_credentials)
150-
except Exception as e:
150+
except Exception:
151151
logger.debug("details", exc_info=True)
152152
logger.error("Connection to S3 failed.")
153153
return 1
154154
s3_buckets = list_s3_buckets(s3) or create_bucket(s3, TESTCONTNAME)
155155
if not s3_buckets:
156-
raise RuntimeError(f"failed to create S3 bucket")
156+
raise RuntimeError("failed to create S3 bucket")
157157
if s3_buckets == [TESTCONTNAME]:
158158
del_bucket(s3, TESTCONTNAME)
159159
# everything worked, and we don't need to test for Swift:
@@ -182,7 +182,7 @@ def check_for_s3_and_swift(conn: openstack.connection.Connection, s3_credentials
182182
s3 = s3_conn(s3_creds, conn)
183183
s3_buckets = list_s3_buckets(s3) or create_bucket(s3, TESTCONTNAME)
184184
if not s3_buckets:
185-
raise RuntimeError(f"failed to create S3 bucket")
185+
raise RuntimeError("failed to create S3 bucket")
186186

187187
# If we got till here, s3 is working, now swift
188188
swift_containers = list_containers(conn)

0 commit comments

Comments
 (0)