Make None check explicit

This commit is contained in:
Erik Johnston committed 2017-02-08 16:04:29 +00:00
1 parent f20cd34858
commit 52cd019a54
1 file changed
+1 -1
+1 -1
View File
@@ -93,7 +93,7 @@ class EndToEndKeyStore(SQLBaseStore):
query_clause = "user_id = ?"
query_params.append(user_id)
if device_id:
if device_id is not None:
query_clause += " AND device_id = ?"
query_params.append(device_id)