Navigation Menu

Skip to content

Commit

Permalink
Catch all errors in the worker thread and print msg.
Browse files Browse the repository at this point in the history
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 committed Jun 22, 2012
1 parent 8373fe5 commit cae0868
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sextante/gui/AlgorithmExecutor.py
Expand Up @@ -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 = {}
Expand Down

0 comments on commit cae0868

Please sign in to comment.