diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-04 07:22:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-04 07:22:04 -0400 |
commit | 88a3ff12f0fa41610968ea820afe44cca70efea7 (patch) | |
tree | e3df543ef4c4f630a1b46f8f301f7f99cd79a464 /synapse/appservice/api.py | |
parent | Convert streams to async. (#8014) (diff) | |
download | synapse-88a3ff12f0fa41610968ea820afe44cca70efea7.tar.xz |
Convert the SimpleHttpClient to async. (#8016)
Diffstat (limited to 'synapse/appservice/api.py')
-rw-r--r-- | synapse/appservice/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/appservice/api.py b/synapse/appservice/api.py index db578bda79..e72a0b9ac0 100644 --- a/synapse/appservice/api.py +++ b/synapse/appservice/api.py @@ -175,7 +175,7 @@ class ApplicationServiceApi(SimpleHttpClient): urllib.parse.quote(protocol), ) try: - info = yield self.get_json(uri, {}) + info = yield defer.ensureDeferred(self.get_json(uri, {})) if not _is_valid_3pe_metadata(info): logger.warning( |