From cdf74fc8c58d75e35e427cb5cddcc5ce2356a439 Mon Sep 17 00:00:00 2001 From: Matthieu Hog Date: Tue, 10 Dec 2024 11:05:26 +0100 Subject: [PATCH] handling node deletion in status update --- meshroom/ui/graph.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meshroom/ui/graph.py b/meshroom/ui/graph.py index f4ee391a..97dcb241 100644 --- a/meshroom/ui/graph.py +++ b/meshroom/ui/graph.py @@ -109,8 +109,11 @@ class FilesModTimePollerThread(QObject): def updatePluginEnvStatus(n): """ Will update the status of the plugin env """ if n.nodeDesc is not None: - n.isEnvBuild=n.nodeDesc.isBuilt - n.buildStatusChanged.emit() + try: + n.isEnvBuild=n.nodeDesc.isBuilt + n.buildStatusChanged.emit() + except Exception as E: + logging.warn("Plugin status update failed, node may be already deleted") def run(self): """ Poll watched files for last modification time. """