Mod: remove unneded else statement
This commit is contained in:
parent
ad4f429cd9
commit
4d3112e9e8
1 changed files with 1 additions and 2 deletions
|
|
@ -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")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue