Mod: remove unneded else statement

This commit is contained in:
Toast 2025-05-29 12:43:55 +02:00 committed by Toast
parent bd6068d263
commit 56165d0cef

View file

@ -61,8 +61,7 @@ class Mod:
if "enabled" not in self.__config:
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:
raise InvalidModError("config.toml does not exist")