From ebd9e79bb212965bd09b847e0a58c9c060d0338d Mon Sep 17 00:00:00 2001 From: Edan Bainglass Date: Thu, 21 Nov 2024 15:03:24 +0000 Subject: [PATCH] Fix bug with missing process state --- src/aiidalab_qe/common/panel.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/aiidalab_qe/common/panel.py b/src/aiidalab_qe/common/panel.py index 0620c382d..f0d1f60fe 100644 --- a/src/aiidalab_qe/common/panel.py +++ b/src/aiidalab_qe/common/panel.py @@ -556,7 +556,11 @@ def _get_child_process_status(self, child="this"): """ def _get_child_state_and_exit_message(self, child="this"): - if not (node := self._fetch_child_process_node(child)): + if not ( + (node := self._fetch_child_process_node(child)) + and hasattr(node, "process_state") + and node.process_state + ): return "queued", None if node.is_failed: return "failed", node.exit_message