mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
catch config delete exception
This commit is contained in:
parent
7f913dfc90
commit
693df9bf2d
@ -53,8 +53,12 @@ class Config:
|
||||
deletes a key from config
|
||||
:param key: key to delete
|
||||
"""
|
||||
del self.config_dict[key]
|
||||
self.save_config()
|
||||
try:
|
||||
del self.config_dict[key]
|
||||
self.save_config()
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
|
||||
def save_config(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user