From e4b2f8398288ea602ba0ca659ce34c312cff8eaa Mon Sep 17 00:00:00 2001 From: 14790897 <14790897abc@gmail.com> Date: Fri, 26 Apr 2024 15:44:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=86proxy?= =?UTF-8?q?=E4=B8=BAnone=E6=97=B6=EF=BC=8CPROXY=E6=9C=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/qcsh.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/qcsh.py b/services/qcsh.py index 06e814b..b4f8c77 100644 --- a/services/qcsh.py +++ b/services/qcsh.py @@ -36,9 +36,11 @@ class QcshService: def __init__(self, access_token, proxy=None): self.access_token = access_token + global PROXY if proxy is not None: - global PROXY PROXY = proxy + else: + PROXY = None def login(self, login_data): """