From 2edabee4aba0a9e13dcf094c2316b8ec8b3f938d Mon Sep 17 00:00:00 2001 From: MiyakoMeow <110924386+MiyakoMeow@users.noreply.github.com> Date: Mon, 3 Mar 2025 05:27:32 +0800 Subject: [PATCH] fix: 'continue' when ip not found --- fetch_ips.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fetch_ips.py b/fetch_ips.py index e16497508..9e72a2280 100644 --- a/fetch_ips.py +++ b/fetch_ips.py @@ -119,7 +119,9 @@ async def main() -> None: for index, github_url in enumerate(GITHUB_URLS): try: ip = await get_ip(session, github_url) - + if ip is None: + print(f"{github_url}: IP Not Found") + continue content += ip.ljust(30) + github_url + "\n" content_list.append((ip, github_url,)) except Exception: