mirror of
https://github.com/521xueweihan/GitHub520.git
synced 2025-12-08 19:06:05 +00:00
fix: optimize tips
This commit is contained in:
parent
8917164aac
commit
ee666b4ab8
@ -137,11 +137,11 @@ async def main() -> None:
|
|||||||
ip = await get_ip(session, github_url)
|
ip = await get_ip(session, github_url)
|
||||||
if ip is None:
|
if ip is None:
|
||||||
print(f"{github_url}: IP Not Found")
|
print(f"{github_url}: IP Not Found")
|
||||||
ip = "# Not available"
|
ip = "# IP Address Not Found"
|
||||||
content += ip.ljust(30) + github_url
|
content += ip.ljust(30) + github_url
|
||||||
global PING_LIST
|
global PING_LIST
|
||||||
if PING_LIST.get(ip) is not None and PING_LIST.get(ip) == PING_TIMEOUT_SEC * 1000:
|
if PING_LIST.get(ip) is not None and PING_LIST.get(ip) == PING_TIMEOUT_SEC * 1000:
|
||||||
content += " # Not Available"
|
content += " # Timeout"
|
||||||
content += "\n"
|
content += "\n"
|
||||||
content_list.append((ip, github_url,))
|
content_list.append((ip, github_url,))
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user