Skip to content
Permalink
Browse files

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
  • Loading branch information
cpolymeris@gmail.com
cpolymeris@gmail.com committed Jun 22, 2012
1 parent 8373fe5 commit cae0868921c4afde684c96002e473c67ae82f56c
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/sextante/gui/AlgorithmExecutor.py
@@ -61,6 +61,11 @@ def runalg(self):
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 = {}

0 comments on commit cae0868

Please sign in to comment.
You can’t perform that action at this time.