Update user/alias query APIs to use new format of SimpleHttpClient.get_json

This commit is contained in:
Kegan Dougal 2015-02-04 17:32:44 +00:00
parent 96d4bf9012
commit 6d3e4f4d0a
2 changed files with 10 additions and 8 deletions

View file

@ -113,6 +113,9 @@ class SimpleHttpClient(object):
if 200 <= response.code < 300:
defer.returnValue(json.loads(body))
else:
# NB: This is explicitly not json.loads(body)'d because the contract
# of CodeMessageException is a *string* message. Callers can always
# load it into JSON if they want.
raise CodeMessageException(response.code, body)