Commit a206dfaf authored by Philipp Hörist's avatar Philipp Hörist

[omemo] Return None on empty result

parent 7873f0ae
......@@ -54,7 +54,7 @@ class LiteSessionStore(SessionStore):
c.execute(q, (device_id, ))
result = c.fetchone()
return result[0].decode('utf-8')
return result[0].decode('utf-8') if result else None
def getActiveDeviceTuples(self):
q = "SELECT recipient_id, device_id FROM sessions WHERE active = 1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment