Skip to content

Commit cae0868

Browse files
author
cpolymeris@gmail.com
committedJun 22, 2012
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
1 parent 8373fe5 commit cae0868

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/sextante/gui/AlgorithmExecutor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ def runalg(self):
6161
self.error.emit(e.msg)
6262
except BaseException,e:
6363
self.error.emit(str(e))
64+
print str(e)
65+
# catch *all* errors, because QGIS tries to handle them in the GUI, which is fatal, this
66+
# being a separate thread.
67+
except:
68+
print "Error executing " + str(self)
6469

6570
def runalgIterating(self):
6671
outputs = {}

0 commit comments

Comments
 (0)
Please sign in to comment.