aboutsummaryrefslogtreecommitdiff
path: root/helpers/key.py
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/key.py')
-rw-r--r--helpers/key.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/helpers/key.py b/helpers/key.py
index e9e485d..7b8051e 100644
--- a/helpers/key.py
+++ b/helpers/key.py
@@ -72,7 +72,11 @@ class Key:
72 ) 72 )
73 73
74 def set_description(self, description): 74 def set_description(self, description):
75 self.description = [str(desc) for desc in description] 75 for desc in description:
76 if desc is None:
77 self.description.append("")
78 else:
79 self.description.append(str(desc))
76 80
77 def set_color(self, color): 81 def set_color(self, color):
78 self.custom_color = tuple(color) 82 self.custom_color = tuple(color)