fix it correctly
This commit is contained in:
parent
815e07771b
commit
7425e3f073
|
@ -404,7 +404,7 @@ class Logger:
|
||||||
''', (jid_id, constants.KIND_STATUS, constants.KIND_GCSTATUS))
|
''', (jid_id, constants.KIND_STATUS, constants.KIND_GCSTATUS))
|
||||||
|
|
||||||
results = self.cur.fetchone()
|
results = self.cur.fetchone()
|
||||||
if len(results) > 0:
|
if results is not None:
|
||||||
result = results[0]
|
result = results[0]
|
||||||
else:
|
else:
|
||||||
result = None
|
result = None
|
||||||
|
|
Loading…
Reference in New Issue