fix var name

This commit is contained in:
Yann Leboulanger 2011-08-25 00:03:03 +02:00
parent 0f3ea82e4c
commit e942d8bcd5

View file

@ -1121,11 +1121,11 @@ class Logger:
obj.conn.last_history_time[obj.jid] = time.mktime(obj.timestamp) obj.conn.last_history_time[obj.jid] = time.mktime(obj.timestamp)
except exceptions.PysqliteOperationalError, e: except exceptions.PysqliteOperationalError, e:
self.conn.dispatch('DB_ERROR', (_('Disk Write Error'), str(e))) obj.conn.dispatch('DB_ERROR', (_('Disk Write Error'), str(e)))
except exceptions.DatabaseMalformed: except exceptions.DatabaseMalformed:
pritext = _('Database Error') pritext = _('Database Error')
sectext = _('The database file (%s) cannot be read. Try to ' sectext = _('The database file (%s) cannot be read. Try to '
'repair it (see http://trac.gajim.org/wiki/DatabaseBackup) ' 'repair it (see http://trac.gajim.org/wiki/DatabaseBackup) '
'or remove it (all history will be lost).') % \ 'or remove it (all history will be lost).') % \
LOG_DB_PATH LOG_DB_PATH
self.conn.dispatch('DB_ERROR', (pritext, sectext)) obj.conn.dispatch('DB_ERROR', (pritext, sectext))