fix typos

This commit is contained in:
Matthew Hodgson 2017-12-27 23:42:08 +00:00 committed by Hubert Chathi
parent 14b3da63a3
commit 234611f347
2 changed files with 3 additions and 2 deletions

View File

@ -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,))

View File

@ -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
)