mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-10 23:10:10 -04:00
Review comments
This commit is contained in:
parent
4a8b715679
commit
26f44164c8
2 changed files with 4 additions and 2 deletions
|
@ -247,6 +247,7 @@ def room_version_to_event_format(room_version):
|
|||
int
|
||||
"""
|
||||
if room_version not in KNOWN_ROOM_VERSIONS:
|
||||
raise
|
||||
# We should have already checked version, so this should not happen
|
||||
raise RuntimeError("Unrecognized room version %s" % (room_version,))
|
||||
|
||||
return EventFormatVersions.V1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue