[ui] Reconstruction: catch errors on graph execution

This commit is contained in:
Yann Lanthony 2017-11-14 16:53:42 +01:00
parent 3fae2fbc57
commit 46463aa007

View file

@ -107,8 +107,12 @@ class Reconstruction(QObject):
def _execute(self, nodes):
self.computingChanged.emit()
graph.execute(self._graph, nodes)
self.computingChanged.emit()
try:
graph.execute(self._graph, nodes)
except Exception as e:
logging.error("Error during Graph execution {}".format(e))
finally:
self.computingChanged.emit()
@Slot()
def stopExecution(self):