init vars used in load_clicked, comment out the exception handler that was single handedly stopping virtually all errors in the import process from showing up
This commit is contained in:
parent
a1783a37cb
commit
e4772dcb74
|
@ -60,6 +60,11 @@ class GuiBulkImport():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def load_clicked(self, widget, data=None):
|
def load_clicked(self, widget, data=None):
|
||||||
|
stored = None
|
||||||
|
dups = None
|
||||||
|
partial = None
|
||||||
|
errs = None
|
||||||
|
ttime = None
|
||||||
# Does the lock acquisition need to be more sophisticated for multiple dirs?
|
# Does the lock acquisition need to be more sophisticated for multiple dirs?
|
||||||
# (see comment above about what to do if pipe already open)
|
# (see comment above about what to do if pipe already open)
|
||||||
if self.settings['global_lock'].acquire(False): # returns false immediately if lock not acquired
|
if self.settings['global_lock'].acquire(False): # returns false immediately if lock not acquired
|
||||||
|
@ -101,12 +106,12 @@ class GuiBulkImport():
|
||||||
self.importer.addBulkImportImportFileOrDir(self.inputFile, site = sitename)
|
self.importer.addBulkImportImportFileOrDir(self.inputFile, site = sitename)
|
||||||
self.importer.setCallHud(False)
|
self.importer.setCallHud(False)
|
||||||
starttime = time()
|
starttime = time()
|
||||||
try:
|
# try:
|
||||||
(stored, dups, partial, errs, ttime) = self.importer.runImport()
|
(stored, dups, partial, errs, ttime) = self.importer.runImport()
|
||||||
except:
|
# except:
|
||||||
print "*** EXCEPTION DURING BULKIMPORT!!!"
|
# print "*** EXCEPTION DURING BULKIMPORT!!!"
|
||||||
raise Exceptions.FpdbError
|
# raise Exceptions.FpdbError
|
||||||
finally:
|
# finally:
|
||||||
gobject.source_remove(self.timer)
|
gobject.source_remove(self.timer)
|
||||||
|
|
||||||
ttime = time() - starttime
|
ttime = time() - starttime
|
||||||
|
|
Loading…
Reference in New Issue
Block a user