summary refs log tree commit diff
path: root/synapse/events/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-01-24 18:28:00 +0000
committerErik Johnston <erik@matrix.org>2019-01-24 18:28:00 +0000
commit26f44164c82c89c08f7ad930f365dbf69759e317 (patch)
tree08f7d7d78728d2d8db27f1fc87fa5eec735102a5 /synapse/events/__init__.py
parentNewsfile (diff)
downloadsynapse-26f44164c82c89c08f7ad930f365dbf69759e317.tar.xz
Review comments
Diffstat (limited to 'synapse/events/__init__.py')
-rw-r--r--synapse/events/__init__.py3
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