base_panel: Fix issue with nonetype error
This commit is contained in:
parent
dcac0012c9
commit
360e8b4055
@ -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():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user