Skip to content

Commit

Permalink
Optimize error output & adjust code sequence #2
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshiko2 committed Dec 2, 2021
1 parent 1604f05 commit 6655d41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ADC_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ def get_html(url, cookies: dict = None, ua: str = None, return_type: str = None,
else:
print("[-]" + errors)
print('[-]Connect Failed! Please check your Proxy or Network!')
print("[-] --- AUTO EXIT AFTER 30s !!! --- ")
time.sleep(30)
os._exit(-1)
raise Exception('Connect Failed')


Expand Down
5 changes: 5 additions & 0 deletions AV_Data_Capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,8 @@ def main():
# Parse command line args
single_file_path, custom_number, logdir, regexstr, zero_op = argparse_function(version)



main_mode = conf.main_mode()
if not main_mode in (1, 2, 3):
print(f"[-]Main mode must be 1 or 2 or 3! You can run '{os.path.basename(sys.argv[0])} --help' for more help.")
Expand Down Expand Up @@ -508,6 +510,9 @@ def fmd(f):
print(f"[+] [{i}/{len(res)}] Mapping Table Downloaded to {fp}")
else:
print(f"[-] [{i}/{len(res)}] Mapping Table Download failed")
print("[-] --- AUTO EXIT AFTER 30s !!! --- ")
time.sleep(30)
os._exit(-1)

# create OpenCC converter
ccm = conf.cc_convert_mode()
Expand Down

0 comments on commit 6655d41

Please sign in to comment.