mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Fix bugs so lazy room joining works as intended.
This commit is contained in:
parent
ab3c897ce1
commit
f7cac2f7b6
3 changed files with 23 additions and 12 deletions
|
@ -41,7 +41,7 @@ class ApplicationServiceApi(SimpleHttpClient):
|
|||
response = yield self.get_json(uri, {
|
||||
"access_token": service.hs_token
|
||||
})
|
||||
if response: # just an empty json object
|
||||
if response is not None: # just an empty json object
|
||||
defer.returnValue(True)
|
||||
except CodeMessageException as e:
|
||||
if e.code == 404:
|
||||
|
@ -60,13 +60,13 @@ class ApplicationServiceApi(SimpleHttpClient):
|
|||
response = yield self.get_json(uri, {
|
||||
"access_token": service.hs_token
|
||||
})
|
||||
if response: # just an empty json object
|
||||
if response is not None: # just an empty json object
|
||||
defer.returnValue(True)
|
||||
except CodeMessageException as e:
|
||||
logger.warning("query_alias to %s received %s", uri, e.code)
|
||||
if e.code == 404:
|
||||
defer.returnValue(False)
|
||||
return
|
||||
logger.warning("query_alias to %s received %s", uri, e.code)
|
||||
except Exception as ex:
|
||||
logger.warning("query_alias to %s threw exception %s", uri, ex)
|
||||
defer.returnValue(False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue