From 1af84cb8ac3802f60bed5c3fe11c502ea6dc8f73 Mon Sep 17 00:00:00 2001 From: Wbucket <3123370042@qq.com> Date: Sun, 11 Oct 2026 12:03:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E7=A9=BF=E9=80=8F=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E8=B6=85=E6=97=B6=EF=BC=8C=E5=8A=A0=E5=85=A5=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- serverGET.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serverGET.py b/serverGET.py index 7e2f671..768444a 100644 --- a/serverGET.py +++ b/serverGET.py @@ -6,7 +6,7 @@ class ServerGet : @staticmethod def __getNames(): try: - res = requests.get(ServerGet.url) + res = requests.get(ServerGet.url,timeout=5) data = res.json() servers:list = data['servers'] return servers @@ -18,7 +18,7 @@ class ServerGet : if ind <1 : return None try: - res = requests.get(ServerGet.url) + res = requests.get(ServerGet.url,timeout=5) data = res.json() servers:list = data['servers'] if ind>servers.__len__():