mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-27 18:11:37 -05:00
sanity check response from make_join
This commit is contained in:
parent
0d63d93ca8
commit
3777fa26aa
1 changed files with 3 additions and 1 deletions
|
|
@ -561,7 +561,9 @@ class FederationClient(FederationBase):
|
||||||
destination, room_id, user_id, membership
|
destination, room_id, user_id, membership
|
||||||
)
|
)
|
||||||
|
|
||||||
pdu_dict = ret["event"]
|
pdu_dict = ret.get("event", None)
|
||||||
|
if not isinstance(pdu_dict, dict):
|
||||||
|
raise InvalidResponseError("Bad 'event' field in response")
|
||||||
|
|
||||||
logger.debug("Got response to make_%s: %s", membership, pdu_dict)
|
logger.debug("Got response to make_%s: %s", membership, pdu_dict)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue