diff --git a/fishy/helper/config.py b/fishy/helper/config.py index 9a33a28..8b788a7 100644 --- a/fishy/helper/config.py +++ b/fishy/helper/config.py @@ -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): """