missing import and incomplete error message. Fixes #5583
This commit is contained in:
parent
46b50f48a1
commit
e86d1feeb2
1 changed files with 4 additions and 2 deletions
|
@ -27,6 +27,7 @@
|
||||||
##
|
##
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import locale
|
import locale
|
||||||
import re
|
import re
|
||||||
from time import time
|
from time import time
|
||||||
|
@ -898,8 +899,9 @@ class OptionsParser:
|
||||||
con.commit()
|
con.commit()
|
||||||
cur.executescript('DROP TABLE %s;' % table)
|
cur.executescript('DROP TABLE %s;' % table)
|
||||||
con.commit()
|
con.commit()
|
||||||
except sqlite.OperationalError:
|
except sqlite.OperationalError, e:
|
||||||
print >> sys.stderr, 'error moving table %s to cache.db'
|
print >> sys.stderr, 'error moving table %s to cache.db: %s' % \
|
||||||
|
(table, str(e))
|
||||||
con.close()
|
con.close()
|
||||||
gajim.config.set('version', '0.13.10.2')
|
gajim.config.set('version', '0.13.10.2')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue