From 4dc236fbc0073925e4a943af739d7ef5c35e7bd9 Mon Sep 17 00:00:00 2001 From: Steptian Date: Sun, 21 May 2023 17:45:33 +0800 Subject: [PATCH] Update url_link.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 urllib3 的引用错误 --- src/wechaty/user/url_link.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wechaty/user/url_link.py b/src/wechaty/user/url_link.py index 74c48d97..929bf13b 100644 --- a/src/wechaty/user/url_link.py +++ b/src/wechaty/user/url_link.py @@ -7,7 +7,8 @@ Optional, Type ) -from urllib3 import get_host +# from urllib3 import get_host +from urllib3.util import parse_url as get_host from wechaty_puppet import UrlLinkPayload, get_logger from wechaty.utils.link import get_url_metadata