Catch all errors in the worker thread and print msg.

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@261 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
This commit is contained in:
cpolymeris@gmail.com 2012-06-22 19:41:56 +00:00
parent 8373fe543f
commit cae0868921

View File

@ -61,6 +61,11 @@ class AlgorithmExecutor(QThread):
self.error.emit(e.msg)
except BaseException,e:
self.error.emit(str(e))
print str(e)
# catch *all* errors, because QGIS tries to handle them in the GUI, which is fatal, this
# being a separate thread.
except:
print "Error executing " + str(self)
def runalgIterating(self):
outputs = {}