Philipp Hörist pushed to branch master at gajim / gajim
Commits: 058d3db1 by Philipp Hörist at 2018-03-24T17:13:15+01:00 Logger: Test for None after fetchone()
fetchone() returns None when nothing is found len(None) yields a TypeError
- - - - -
1 changed file:
- gajim/common/logger.py
Changes:
===================================== gajim/common/logger.py ===================================== --- a/gajim/common/logger.py +++ b/gajim/common/logger.py @@ -525,7 +525,7 @@ class Logger: ''' % msg_log_id ) results = self.cur.fetchone() - if len(results) == 0: + if results is None: # Log line is no more in logs table. remove it from unread_messages self.set_read_messages([msg_log_id]) continue
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/058d3db1b03dcb700a970ad22d8aeb105ef...
--- View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/058d3db1b03dcb700a970ad22d8aeb105ef... You're receiving this email because of your account on dev.gajim.org.