Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 14f9d9b

Browse files
author
Mathieu Velten
authored
Fix empty scope when having version mismatch between workers (#15774)
1 parent 6291158 commit 14f9d9b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/15774.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix an error when having workers of different versions running.

synapse/types/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def deserialize(
177177
user=UserID.from_string(input["user_id"]),
178178
access_token_id=input["access_token_id"],
179179
is_guest=input["is_guest"],
180-
scope=set(input["scope"]),
180+
scope=set(input.get("scope", [])),
181181
shadow_banned=input["shadow_banned"],
182182
device_id=input["device_id"],
183183
app_service=appservice,

0 commit comments

Comments
 (0)