Merge pull request #30 from flavio-fernandes/fix.issue.29
set_text_color: check if label is None before assigning value
This commit is contained in:
commit
41ffc84b97
1 changed files with 2 additions and 1 deletions
|
|
@ -307,7 +307,8 @@ class PortalBase:
|
|||
if self._text[index]:
|
||||
color = self.html_color_convert(color)
|
||||
self._text[index]["color"] = color
|
||||
self._text[index]["label"].color = color
|
||||
if self._text[index]["label"] is not None:
|
||||
self._text[index]["label"].color = color
|
||||
|
||||
def exit_and_deep_sleep(self, sleep_time):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue