8000 minor: pyflakes fixes · codeplay/cf-python-client@5312af6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5312af6

Browse files
Romain DartiguesBen Einaudi
authored andcommitted
minor: pyflakes fixes
1 parent f6a0851 commit 5312af6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/python/cloudfoundry_client/entities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,6 @@ def _check_response(response):
155155
else:
156156
try:
157157
body = response.json()
158-
except Exception, _:
158+
except Exception:
159159
body = response.text
160160
raise InvalidStatusCode(response.status_code, body)

src/python/cloudfoundry_client/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def main():
243243
else:
244244
try:
245245
data = json.loads(arguments.entity[0])
246-
except ValueError, _:
246+
except ValueError:
247247
raise ValueError('entity: must be either a valid json file path or a json object')
248248
print(_get_client_domain(client, domain)._create(data.json()))
249249
elif arguments.action.find('delete_') == 0:

0 commit comments

Comments
 (0)
0