mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Update user/alias query APIs to use new format of SimpleHttpClient.get_json
This commit is contained in:
parent
96d4bf9012
commit
6d3e4f4d0a
2 changed files with 10 additions and 8 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue