changeset f8003ec968f4 in /home/hg/repos/gajim-plugins

author: lovetox <[email protected]>
branches: 
details:gajim-plugins?cmd=changeset;node=f8003ec968f4
description: Check if result is not None

        An Error was thrown when result was None

diffstat:

 omemo/omemo/liteidentitykeystore.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r f8da63260783 -r f8003ec968f4 omemo/omemo/liteidentitykeystore.py
--- a/omemo/omemo/liteidentitykeystore.py       Mon Jun 13 22:21:29 2016 +0200
+++ b/omemo/omemo/liteidentitykeystore.py       Tue Jun 14 16:29:04 2016 +0200
@@ -152,7 +152,7 @@
 
         states = [UNTRUSTED, TRUSTED, UNDECIDED]
 
-        if result[0] in states:
+        if result and result[0] in states:
             return result[0]
         else:
             return UNDECIDED
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to