Fix empty scope when having version mismatch between workers (#15774)

This commit is contained in:
Mathieu Velten 2023-06-14 11:53:55 +02:00 committed by GitHub
parent 629115836f
commit 14f9d9b452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/15774.bugfix Normal file
View File

@ -0,0 +1 @@
Fix an error when having workers of different versions running.

View File

@ -177,7 +177,7 @@ class Requester:
user=UserID.from_string(input["user_id"]), user=UserID.from_string(input["user_id"]),
access_token_id=input["access_token_id"], access_token_id=input["access_token_id"],
is_guest=input["is_guest"], is_guest=input["is_guest"],
scope=set(input["scope"]), scope=set(input.get("scope", [])),
shadow_banned=input["shadow_banned"], shadow_banned=input["shadow_banned"],
device_id=input["device_id"], device_id=input["device_id"],
app_service=appservice, app_service=appservice,