base_panel: Fix issue with nonetype error

This commit is contained in:
Jordan Ruthe 2021-05-20 20:26:52 -04:00
parent dcac0012c9
commit 360e8b4055

View File

@ -156,7 +156,7 @@ class BasePanel(ScreenPanel):
return self.layout return self.layout
def process_update(self, action, data): def process_update(self, action, data):
if action != "notify_status_update": if action != "notify_status_update" or self._printer == None:
return return
if self._printer.has_heated_bed(): if self._printer.has_heated_bed():