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

Commit

Permalink
Handle missing events PL key when upgrading room
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Dec 4, 2023
1 parent 8d998c8 commit 591ddb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/handlers/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ async def clone_existing_room(
except (TypeError, ValueError):
ban = 50
needed_power_level = max(
state_default_int, ban, max(event_power_levels.values())
state_default_int, ban, max(event_power_levels.values(), default=0)
)

# Get the user's current power level, this matches the logic in get_user_power_level,
Expand Down

0 comments on commit 591ddb8

Please sign in to comment.