Skip to content

Commit

Permalink
Update the error info
Browse files Browse the repository at this point in the history
The pdc_client command to return "Client error: ", this patch
will remove these info

JIRA: PDC-998
  • Loading branch information
bliuredhat committed Jan 29, 2016
1 parent 9fb3864 commit f727da6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/pdc_client
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class RequestMethod(object):

@debug_request
def get(self, data):
if isinstance(data, list):
if not isinstance(data, dict):
print 'For GET request, the data must be a JSON object, not a list.'
sys.exit(1)
return self.client[self.resource]._(**data)
Expand Down Expand Up @@ -82,8 +82,6 @@ class RequestMethod(object):
if exc_type is BeanBagException:
print "%d %s" % (
exc_val.response.status_code, exc_val.response.content)
else:
print "Client error: %s" % str(exc_val)

if self.traceback:
import traceback
Expand Down

0 comments on commit f727da6

Please sign in to comment.