This commit is contained in:
Kovid Goyal 2011-01-29 08:30:54 -07:00
parent ad33d230e6
commit 6f8cdbe41a

View File

@ -74,6 +74,7 @@ class DBCheck(QDialog):
self.reject() self.reject()
def start_load(self): def start_load(self):
try:
self.conn.close() self.conn.close()
self.pb.setMaximum(self.count) self.pb.setMaximum(self.count)
self.pb.setValue(0) self.pb.setValue(0)
@ -89,6 +90,11 @@ class DBCheck(QDialog):
self.conn.commit() self.conn.commit()
QTimer.singleShot(0, self.do_one_load) QTimer.singleShot(0, self.do_one_load)
except Exception, e:
import traceback
self.error = (as_unicode(e), traceback.format_exc())
self.reject()
def do_one_load(self): def do_one_load(self):
if self.rejected: if self.rejected: