From 7425e3f073e521ff8a5f42a5166c0670604f7932 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 26 Dec 2005 18:34:02 +0000 Subject: [PATCH] fix it correctly --- src/common/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/logger.py b/src/common/logger.py index 0d36c2aa9..6043e0546 100644 --- a/src/common/logger.py +++ b/src/common/logger.py @@ -404,7 +404,7 @@ class Logger: ''', (jid_id, constants.KIND_STATUS, constants.KIND_GCSTATUS)) results = self.cur.fetchone() - if len(results) > 0: + if results is not None: result = results[0] else: result = None