Skip to content

Commit 3e367f3

Browse files
author
Matthew Fisher
committed
fix(client): remove check for error message
This check was originally used for API/client version mismatches, but breaks when the response is not as to be expected. The client response works, anyways: ><> deis apps 405 METHOD NOT ALLOWED {u'error': u'Client and server versions do not match.\nClient version: 0.10\nServer version: 0.11'}
1 parent 754e016 commit 3e367f3

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

client/deis.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,6 @@ def _dispatch(self, method, path, body=None, **kwargs):
377377
'No active controller. Use `deis login` or `deis register` to get started.')
378378
url = urlparse.urljoin(controller, path, **kwargs)
379379
response = func(url, data=body, headers=headers)
380-
# check for errors
381-
if response.json().get('error') is not None:
382-
print(response.json()['error'])
383-
sys.exit(1)
384380
return response
385381

386382
def apps(self, args):

0 commit comments

Comments
 (0)