Get metadata from meta.json, if it exists #12
1 changed files with 1 additions and 2 deletions
|
|
@ -61,7 +61,6 @@ 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