Get metadata from meta.json, if it exists #12

Merged
Toast merged 5 commits from localMetadata into main 2025-05-30 22:00:06 +02:00
Showing only changes of commit 56165d0cef - Show all commits

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")