missing import and incomplete error message. Fixes #5583
This commit is contained in:
parent
46b50f48a1
commit
e86d1feeb2
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue