Skip to content

Commit

Permalink
Fix bug with missing process state
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Dec 9, 2024
1 parent 100a2b4 commit 72020be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/aiidalab_qe/common/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72020be

Please sign in to comment.