From 16604d687e2ae925b959f1a51983cb0b93aef887 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Thu, 1 Dec 2022 11:39:45 +1100 Subject: [PATCH] Fix minor pep8 issues pep8 now wants this without (). The dependent change should fix the gerritlib-jeepyb-integration which is also currently broken. Depends-On: https://review.opendev.org/c/opendev/gerritlib/+/866241 Change-Id: Iad46d49f9e825b2d95f7318748b84aed90f60556 --- jeepyb/cmd/openstackwatch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeepyb/cmd/openstackwatch.py b/jeepyb/cmd/openstackwatch.py index 264112f..9ea8275 100644 --- a/jeepyb/cmd/openstackwatch.py +++ b/jeepyb/cmd/openstackwatch.py @@ -104,7 +104,7 @@ def parse_json(content): for row in content.splitlines(): try: json_row = json.loads(row) - except(ValueError): + except ValueError: continue if not json_row or 'project' not in json_row or \ json_row['project'] not in CONFIG['projects']: @@ -122,7 +122,7 @@ def upload_to_swift(content, objectname): '2.0')) try: client.get_container(cfg['container']) - except(swiftclient.client.ClientException): + except swiftclient.client.ClientException: client.put_container(cfg['container']) # eventual consistenties time.sleep(1)