diff options
author | Erik Johnston <erik@matrix.org> | 2019-01-24 18:28:00 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-01-24 18:28:00 +0000 |
commit | 26f44164c82c89c08f7ad930f365dbf69759e317 (patch) | |
tree | 08f7d7d78728d2d8db27f1fc87fa5eec735102a5 /synapse/events/__init__.py | |
parent | Newsfile (diff) | |
download | synapse-26f44164c82c89c08f7ad930f365dbf69759e317.tar.xz |
Review comments
Diffstat (limited to 'synapse/events/__init__.py')
-rw-r--r-- | synapse/events/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py index e6f94e68af..154a7c0198 100644 --- a/synapse/events/__init__.py +++ b/synapse/events/__init__.py @@ -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 |