mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-27 07:27:10 -05:00
Cast bacjup version to int when querying
This commit is contained in:
parent
2f0f911c52
commit
12941f5f8b
@ -219,7 +219,12 @@ class EndToEndRoomKeyStore(SQLBaseStore):
|
|||||||
if version is None:
|
if version is None:
|
||||||
this_version = self._get_current_version(txn, user_id)
|
this_version = self._get_current_version(txn, user_id)
|
||||||
else:
|
else:
|
||||||
this_version = version
|
try:
|
||||||
|
this_version = int(version)
|
||||||
|
except ValueError:
|
||||||
|
# Our versions are all ints so if we can't convert it to an integer,
|
||||||
|
# it isn't there.
|
||||||
|
raise StoreError(404, "No row found")
|
||||||
|
|
||||||
result = self._simple_select_one_txn(
|
result = self._simple_select_one_txn(
|
||||||
txn,
|
txn,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user