Convert the appservice handler to async/await. (#7775)

This commit is contained in:
Patrick Cloke 2020-07-06 07:40:35 -04:00 committed by GitHub
parent 57feeab364
commit 6d687ebba1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 68 additions and 76 deletions

View file

@ -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