You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use @root_validator with pre=False (the default) you MUST specify skip_on_failure=True. The skip_on_failure=False option is no longer available.
If you were not trying to set skip_on_failure=False, you can safely set skip_on_failure=True. If you do, this root validator will no longer be called if validation fails for any of the fields.
那么,在插件的config.py中第76行修改为:
@root_validator(skip_on_failure=True)
在nonebot_plugin_apscheduler插件的config.py中修改为以下加载项:
from pydantic import Field
from pydantic_settings import BaseSettings
最后,在虚拟环境(如果有)中执行pip install pydantic-settings
正确放置资源文件并设置文件目录后即可正常使用
The text was updated successfully, but these errors were encountered:
你可能在nb plugin install后启动时nonebot_plugin_apscheduler报错:
If you use @root_validator with pre=False (the default) you MUST specify skip_on_failure=True. The skip_on_failure=False option is no longer available.
If you were not trying to set skip_on_failure=False, you can safely set skip_on_failure=True. If you do, this root validator will no longer be called if validation fails for any of the fields.
那么,在插件的config.py中第76行修改为:
在nonebot_plugin_apscheduler插件的config.py中修改为以下加载项:
from pydantic import Field
from pydantic_settings import BaseSettings
最后,在虚拟环境(如果有)中执行pip install pydantic-settings
正确放置资源文件并设置文件目录后即可正常使用
The text was updated successfully, but these errors were encountered: