8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6a0851 commit 5312af6Copy full SHA for 5312af6
src/python/cloudfoundry_client/entities.py
@@ -155,6 +155,6 @@ def _check_response(response):
155
else:
156
try:
157
body = response.json()
158
- except Exception, _:
+ except Exception:
159
body = response.text
160
raise InvalidStatusCode(response.status_code, body)
src/python/cloudfoundry_client/main.py
@@ -243,7 +243,7 @@ def main():
243
244
245
data = json.loads(arguments.entity[0])
246
- except ValueError, _:
+ except ValueError:
247
raise ValueError('entity: must be either a valid json file path or a json object')
248
print(_get_client_domain(client, domain)._create(data.json()))
249
elif arguments.action.find('delete_') == 0:
0 commit comments