Cast to int here too

pull/4113/head
David Baker 2018-10-30 11:12:23 +00:00
parent 12941f5f8b
commit e0934acdbb
1 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,11 @@ class EndToEndRoomKeyStore(SQLBaseStore):
these room keys.
"""
try:
version = int(version)
except ValueError:
defer.returnValue({'rooms': {}})
keyvalues = {
"user_id": user_id,
"version": version,