This commit is contained in:
Hubert Chathi 2019-08-15 20:59:16 -07:00
parent d081883f1e
commit 72fb8ac9c8

View file

@ -108,7 +108,9 @@ class E2eRoomKeysHandler(object):
with (yield self._upload_linearizer.queue(user_id)): with (yield self._upload_linearizer.queue(user_id)):
# make sure the backup version exists # make sure the backup version exists
try: try:
version_info = yield self.store.get_e2e_room_keys_version_info(user_id, version) version_info = yield self.store.get_e2e_room_keys_version_info(
user_id, version
)
except StoreError as e: except StoreError as e:
if e.code == 404: if e.code == 404:
raise NotFoundError("Unknown backup version") raise NotFoundError("Unknown backup version")