Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nekk
gajim-plugins
Commits
ba7c2e3a
Commit
ba7c2e3a
authored
Sep 15, 2017
by
Philipp Hörist
Browse files
[omemo] Return None on empty result
parent
2cadb609
Changes
1
Hide whitespace changes
Inline
Side-by-side
omemo/omemo/litesessionstore.py
View file @
ba7c2e3a
...
...
@@ -53,8 +53,7 @@ class LiteSessionStore(SessionStore):
c
=
self
.
dbConn
.
cursor
()
c
.
execute
(
q
,
(
device_id
,
))
result
=
c
.
fetchone
()
return
result
[
0
]
return
result
[
0
]
if
result
else
None
def
getActiveDeviceTuples
(
self
):
q
=
"SELECT recipient_id, device_id FROM sessions WHERE active = 1"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment