mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 06:32:54 +00:00
sanity check response from make_join
This commit is contained in:
1 parent
0d63d93ca8
commit
3777fa26aa
1 file changed
+3
-1
@@ -561,7 +561,9 @@ class FederationClient(FederationBase):
|
||||
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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user