diff --git a/pyproject.toml b/pyproject.toml index a3e3b6c..24ca9fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nonebot_plugin_liteperm" -version = "0.0.1.post1" +version = "0.0.1.post2" description = "基于权限节点/权限组/特殊权限的Nonebot权限管理插件。" authors = [ { name = "JohnRichard4096", email = "windowserror@163.com" }, diff --git a/src/nonebot_plugin_liteperm/config.py b/src/nonebot_plugin_liteperm/config.py index 9f9e4b2..d7e2d83 100644 --- a/src/nonebot_plugin_liteperm/config.py +++ b/src/nonebot_plugin_liteperm/config.py @@ -78,7 +78,7 @@ class Data_Manager: permission_groups_path: Path = plugin_data_dir / "permission_groups" config_path: Path = config_dir / "config.toml" cmd_settings_path = plugin_data_dir / "command_settings.json" - config: Config = field(default=Config()) + config: Config = field(default_factory = Config) def init(self): os.makedirs(self.group_data_path, exist_ok=True)