Mod: remove unneded else statement

This commit is contained in:
Toast 2025-05-29 12:43:55 +02:00 committed by Toast
parent ad4f429cd9
commit 4d3112e9e8

View file

@ -61,8 +61,7 @@ class Mod:
if "enabled" not in self.__config: if "enabled" not in self.__config:
raise InvalidModError("config.toml does not contain the enabled key") raise InvalidModError("config.toml does not contain the enabled key")
else: self.__enabled = self.__config.get("enabled", bool)
self.__enabled = self.__config.get("enabled", bool)
except FileNotFoundError: except FileNotFoundError:
raise InvalidModError("config.toml does not exist") raise InvalidModError("config.toml does not exist")