base_panel: Fix issue with nonetype error

This commit is contained in:
Jordan Ruthe committed 2021-05-20 20:26:52 -04:00
1 parent dcac0012c9
commit 360e8b4055
1 file changed
+1 -1
+1 -1
View File
@@ -156,7 +156,7 @@ class BasePanel(ScreenPanel):
return self.layout
def process_update(self, action, data):
if action != "notify_status_update":
if action != "notify_status_update" or self._printer == None:
return
if self._printer.has_heated_bed():