Fix Mapping Table Download FAILED
This commit is contained in:
@@ -523,7 +523,10 @@ def download_one_file(args) -> str:
|
||||
"""
|
||||
|
||||
(url, save_path, json_data) = args
|
||||
if json_data != None:
|
||||
filebytes = get_html(url, return_type='content', json_headers=json_data['headers'])
|
||||
else:
|
||||
filebytes = get_html(url, return_type='content')
|
||||
if isinstance(filebytes, bytes) and len(filebytes):
|
||||
with save_path.open('wb') as fpbyte:
|
||||
if len(filebytes) == fpbyte.write(filebytes):
|
||||
|
||||
@@ -591,6 +591,7 @@ def main(args: tuple) -> Path:
|
||||
print("[!] " + "Mapping Table Download FAILED".center(47))
|
||||
print("[!] " + "无法连接github".center(47))
|
||||
print("[!] " + "请过几小时再试试".center(47))
|
||||
print("[!]", e)
|
||||
print("[-] " + "------ AUTO EXIT AFTER 30s !!! ------ ".center(47))
|
||||
time.sleep(30)
|
||||
os._exit(-1)
|
||||
|
||||
Reference in New Issue
Block a user