changeset a692572bfbbb in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=a692572bfbbb description: missing import and incomplete error message. Fixes #5583
diffstat:
src/common/optparser.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 3372b574e372 -r a692572bfbbb src/common/optparser.py --- a/src/common/optparser.py Fri Jan 29 11:25:06 2010 +0100 +++ b/src/common/optparser.py Fri Jan 29 15:20:23 2010 +0100 @@ -27,6 +27,7 @@ ##
import os +import sys import locale import re from time import time @@ -898,8 +899,9 @@ con.commit() cur.executescript('DROP TABLE %s;' % table) con.commit() - except sqlite.OperationalError: - print >> sys.stderr, 'error moving table %s to cache.db' + except sqlite.OperationalError, e: + print >> sys.stderr, 'error moving table %s to cache.db: %s' % \ + (table, str(e)) con.close() gajim.config.set('version', '0.13.10.2')