Fix validation of icon field in Component class
This commit is contained in:
parent
25774265d3
commit
3ecc492211
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ class Component:
|
|||
setattr(self, key, value)
|
||||
|
||||
# Validate the emoji at the icon field
|
||||
if self.icon:
|
||||
if hasattr(self, "icon") and self.icon:
|
||||
self.icon = self.validate_icon(self.icon)
|
||||
|
||||
def __setattr__(self, key, value):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue