prevent a tb
This commit is contained in:
parent
72dbd583e0
commit
815e07771b
|
@ -402,5 +402,11 @@ class Logger:
|
|||
AND kind NOT IN (?, ?)
|
||||
ORDER BY time DESC LIMIT 1
|
||||
''', (jid_id, constants.KIND_STATUS, constants.KIND_GCSTATUS))
|
||||
result = self.cur.fetchone()[0]
|
||||
|
||||
results = self.cur.fetchone()
|
||||
if len(results) > 0:
|
||||
result = results[0]
|
||||
else:
|
||||
result = None
|
||||
|
||||
return result
|
||||
|
|
Loading…
Reference in New Issue