diff --git a/pwnagotchi/ui/view.py b/pwnagotchi/ui/view.py index 52b92f05..8d31ffeb 100644 --- a/pwnagotchi/ui/view.py +++ b/pwnagotchi/ui/view.py @@ -109,7 +109,7 @@ class View(object): self._state.has_element(key) def add_element(self, key, elem): - if self.invert is 1 and elem.color: + if self.invert is 1 and hasattr(elem, 'color'): if elem.color == 0xff: elem.color = 0x00 elif elem.color == 0x00: