Fix small TBs about last changeset that could happen if some history were manually removed.

This commit is contained in:
Jean-Marie Traissard 2008-03-19 22:01:21 +00:00
parent f9ca40ff1b
commit 624a16034e
1 changed files with 2 additions and 1 deletions

View File

@ -365,7 +365,8 @@ class Logger:
''' % msg_id
)
results = self.cur.fetchall()
all_messages.append(results[0])
if len(results) > 0:
all_messages.append(results[0])
return all_messages
def write(self, kind, jid, message = None, show = None, tim = None,