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
This commit is contained in:
parent
54e2e56ed5
commit
16604d687e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user