Update core.py

This commit is contained in:
Feng4
2020-12-06 20:05:05 +08:00
committed by GitHub
parent b6ee20b88c
commit 5edba21558

View File

@@ -284,7 +284,7 @@ def download_file_with_filename(url, filename, path, conf: config.Config, filepa
for i in range(retry_count): for i in range(retry_count):
try: try:
if switch == 1: if switch == 1 or switch == '1':
if not os.path.exists(path): if not os.path.exists(path):
os.makedirs(path) os.makedirs(path)
proxies = get_proxy(proxy, proxytype) proxies = get_proxy(proxy, proxytype)