missing import and incomplete error message. Fixes #5583

This commit is contained in:
Yann Leboulanger 2010-01-29 15:20:23 +01:00
parent 46b50f48a1
commit e86d1feeb2
1 changed files with 4 additions and 2 deletions

View File

@ -27,6 +27,7 @@
##
import os
import sys
import locale
import re
from time import time
@ -898,8 +899,9 @@ class OptionsParser:
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')