美文网首页
YAMLLoadWarning: calling yaml.lo

YAMLLoadWarning: calling yaml.lo

作者: 夙小叶 | 来源:发表于2020-02-03 14:19 被阅读0次
  • 错误
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  logging.config.dictConfig(yaml.load(open('log.yaml', 'r')))

  • 解决

  • yaml.load(stream, yaml.SafeLoader)

  • yaml.load(stream, yaml.FullLoader)

  • yaml.load(stream, yaml.Loader)


https://stackoverflow.com/a/56455769

相关文章

网友评论

      本文标题:YAMLLoadWarning: calling yaml.lo

      本文链接:https://www.haomeiwen.com/subject/isyhxhtx.html