Skip to content

Commit

Permalink
replace model_validate
Browse files Browse the repository at this point in the history
Signed-off-by: ふぁ <[email protected]>
  • Loading branch information
fa0311 committed Jul 24, 2023
1 parent 2e201fb commit 7502765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/plugin_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def load_plugins():
dir = os.path.dirname(filepath)

with open(filepath, "r") as f:
meta = PluginMetaData.parse_obj(toml.load(f))
meta = PluginMetaData.model_validate(toml.load(f))

dir_basename = os.path.basename(dir)
plugin_store[dir_basename] = {
Expand Down

0 comments on commit 7502765

Please sign in to comment.