From 2d8b5c1974130fa213657ece748f84162fc1c7e6 Mon Sep 17 00:00:00 2001 From: alfrix Date: Tue, 30 Aug 2022 18:04:06 -0300 Subject: [PATCH] job_status: fix issue when checking the state too early --- panels/job_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/job_status.py b/panels/job_status.py index cac0e63d..4590f976 100644 --- a/panels/job_status.py +++ b/panels/job_status.py @@ -732,7 +732,7 @@ class JobStatusPanel(ScreenPanel): def state_check(self): ps = self._printer.get_stat("print_stats") - if ps['state'] == self.state: + if 'state' not in ps or ps['state'] == self.state: return True if ps['state'] == "printing":