Initial commit

This commit is contained in:
noembryo
2023-11-02 19:16:49 +02:00
parent b772545d29
commit 640a7365a2
+6 -2
View File
@@ -88,8 +88,12 @@ class PromptTermList:
print(f'{self.name}: The label "{label}" cannot be changed!')
return
if not value:
del self.data[label]
print(f'{self.name}: The label "{label}" was deleted!')
if label in self.data:
del self.data[label]
print(f'{self.name}: The label "{label}" was deleted!')
else:
print(f'{self.name}: The label "{label}" does not exist!')
return
else:
if label in self.data:
print(f'{self.name}: The label "{label}" is updated!')