mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 12:54:53 -04:00
Convert the appservice handler to async/await. (#7775)
This commit is contained in:
parent
57feeab364
commit
6d687ebba1
4 changed files with 68 additions and 76 deletions
|
@ -98,7 +98,6 @@ class ApplicationServiceApi(SimpleHttpClient):
|
|||
if service.url is None:
|
||||
return False
|
||||
uri = service.url + ("/users/%s" % urllib.parse.quote(user_id))
|
||||
response = None
|
||||
try:
|
||||
response = yield self.get_json(uri, {"access_token": service.hs_token})
|
||||
if response is not None: # just an empty json object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue