美文网首页
解决提示警告:InsecureRequestWarning: U

解决提示警告:InsecureRequestWarning: U

作者: 淘淘兜1399 | 来源:发表于2020-11-16 19:59 被阅读0次

    代码前加上:warnings.filterwarnings("ignore")

    if not conn.is_verified:

    warnings.warn(

    (

    "Unverified HTTPS request is being made. "

    "Adding certificate verification is strongly advised. See: "

    "https://urllib3.readthedocs.io/en/latest/advanced-usage.html"

    "#ssl-warnings"

            ),

            InsecureRequestWarning,

        )

    相关文章

      网友评论

          本文标题:解决提示警告:InsecureRequestWarning: U

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