job_status: fix issue when checking the state too early

This commit is contained in:
alfrix authored and Alfredo Monclus committed 2022-09-02 19:58:35 -03:00
1 parent be2d5b040c
commit 2d8b5c1974
1 file changed
+1 -1
+1 -1
View File
@@ -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":