From b9eaaf6a922ffe61a78997d9901f7188320ff475 Mon Sep 17 00:00:00 2001 From: Alfredo Monclus Date: Mon, 25 Nov 2024 11:00:05 -0300 Subject: [PATCH] fix(exclude): current object --- panels/exclude.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/panels/exclude.py b/panels/exclude.py index 93c89acd..ebece6e4 100644 --- a/panels/exclude.py +++ b/panels/exclude.py @@ -75,7 +75,10 @@ class Panel(ScreenPanel): ) def exclude_current(self, widget): - self.exclude_object(widget, f"{self.current_object.get_label()}") + current = self._printer.data["exclude_object"]["current_object"] + if current is None: + return + self.exclude_object(widget, f"{current}") def process_update(self, action, data): if action == "notify_status_update":