diff options
author | Matthew Hodgson <matthew@matrix.org> | 2017-12-27 23:42:08 +0000 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2018-08-12 19:14:31 -0400 |
commit | 234611f3472b229d9e3a9ec7a27c51446f6a61ba (patch) | |
tree | ff113ed062dbb3a986a250b1ac5e53d6a99f115b /synapse/handlers | |
parent | add a tonne of docstring; make upload_room_keys properly assert version (diff) | |
download | synapse-234611f3472b229d9e3a9ec7a27c51446f6a61ba.tar.xz |
fix typos
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/e2e_room_keys.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/e2e_room_keys.py b/synapse/handlers/e2e_room_keys.py index 2fa025bfc7..6446c3c6c3 100644 --- a/synapse/handlers/e2e_room_keys.py +++ b/synapse/handlers/e2e_room_keys.py @@ -110,7 +110,8 @@ class E2eRoomKeysHandler(object): # XXX: perhaps we should use a finer grained lock here? with (yield self._upload_linearizer.queue(user_id)): # Check that the version we're trying to upload is the current version - version_info = yield self.get_current_version_info(user_id) + try: + version_info = yield self.get_current_version_info(user_id) except StoreError as e: if e.code == 404: raise SynapseError(404, "Version '%s' not found" % (version,)) |