diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-01-31 10:56:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 10:56:42 +0000 |
commit | 160522e32cb92b5fb4f0bcd8e3c53d0a4d04ad3f (patch) | |
tree | f49255e22a2840ac954f911e7b263a1e709ce9c4 /synapse/api/errors.py | |
parent | Fix bug with getting missing auth event during join 500'ed (#6810) (diff) | |
parent | newsfile (diff) | |
download | synapse-160522e32cb92b5fb4f0bcd8e3c53d0a4d04ad3f.tar.xz |
Merge pull request #6820 from matrix-org/rav/get_room_version_id
Make `get_room_version` return a RoomVersion object
Diffstat (limited to 'synapse/api/errors.py')
-rw-r--r-- | synapse/api/errors.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py index 1c9456e583..0c20601600 100644 --- a/synapse/api/errors.py +++ b/synapse/api/errors.py @@ -402,11 +402,9 @@ class UnsupportedRoomVersionError(SynapseError): """The client's request to create a room used a room version that the server does not support.""" - def __init__(self): + def __init__(self, msg="Homeserver does not support this room version"): super(UnsupportedRoomVersionError, self).__init__( - code=400, - msg="Homeserver does not support this room version", - errcode=Codes.UNSUPPORTED_ROOM_VERSION, + code=400, msg=msg, errcode=Codes.UNSUPPORTED_ROOM_VERSION, ) |