From 9f6322494f6d964db8276a6291669a73b5aba9bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BE=BD=E5=85=88=E7=94=9F?= <8655163+VergilGao@users.noreply.github.com> Date: Sat, 28 May 2022 13:38:46 +0800 Subject: [PATCH] fix download error --- core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.py b/core.py index d50e495..d02c885 100644 --- a/core.py +++ b/core.py @@ -132,7 +132,7 @@ def download_file_with_filename(url, filename, path, filepath, json_headers=None if not json_headers == None: if 'headers' in json_headers: headers.update(json_headers) - if configProxy: + if configProxy.enable: proxies = configProxy.proxies() r = requests.get(url, headers=headers, timeout=configProxy.timeout, proxies=proxies) else: