fix it correctly

This commit is contained in:
Nikos Kouremenos 2005-12-26 18:34:02 +00:00
parent 815e07771b
commit 7425e3f073
1 changed files with 1 additions and 1 deletions

View File

@ -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