summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2017-12-27 23:42:08 +0000
committerHubert Chathi <hubert@uhoreg.ca>2018-08-12 19:14:31 -0400
commit234611f3472b229d9e3a9ec7a27c51446f6a61ba (patch)
treeff113ed062dbb3a986a250b1ac5e53d6a99f115b
parentadd a tonne of docstring; make upload_room_keys properly assert version (diff)
downloadsynapse-234611f3472b229d9e3a9ec7a27c51446f6a61ba.tar.xz
fix typos
-rw-r--r--synapse/handlers/e2e_room_keys.py3
-rw-r--r--synapse/storage/e2e_room_keys.py2
2 files changed, 3 insertions, 2 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,))
diff --git a/synapse/storage/e2e_room_keys.py b/synapse/storage/e2e_room_keys.py
index e04e6a3690..b51faa1204 100644
--- a/synapse/storage/e2e_room_keys.py
+++ b/synapse/storage/e2e_room_keys.py
@@ -219,7 +219,7 @@ class EndToEndRoomKeyStore(SQLBaseStore):
             )
 
         return self.runInteraction(
-            desc="get_e2e_room_keys_version_info",
+            "get_e2e_room_keys_version_info",
             _get_e2e_room_keys_version_info_txn
         )