From 2cdf44f54b9ae491b7dd76ff84844344c80a7932 Mon Sep 17 00:00:00 2001 From: tdc Date: Tue, 21 May 2024 15:23:38 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20165=20=E6=9C=89=E7=A9=BA?= =?UTF-8?q?=E9=9B=86=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoBuild/tw_165.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AutoBuild/tw_165.py b/AutoBuild/tw_165.py index 4459df2..1005e57 100644 --- a/AutoBuild/tw_165.py +++ b/AutoBuild/tw_165.py @@ -20,7 +20,9 @@ def exclude_list(domain: str) -> bool: def is_pure_ip(domain: str) -> bool: - return True if re.match(IP_PATTERN, domain) else False + if isinstance(domain, str): + return True if re.match(IP_PATTERN, domain) else False + return True def main():