Skip to content

Commit

Permalink
关闭报错追踪
Browse files Browse the repository at this point in the history
  • Loading branch information
Hatanezumi authored and Hatanezumi committed Mar 8, 2024
1 parent 13de691 commit fe6c673
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js_finder.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import requests
import os
import time
import traceback
from pathlib import Path
from bs4 import BeautifulSoup
from config import Color
Expand Down Expand Up @@ -79,8 +78,8 @@ def save_js_file(base_url, js_path, id:str):
# 保存JS文件
with open(save_path, 'wb') as js_file: # 使用二进制模式保存
js_file.write(js_content)
except Exception:
print(f"保存JS文件时发生错误:{traceback.format_exc()}")
except Exception as e:
print(f"保存JS文件时发生错误:{e}")


def get_js_paths(url, proxy=None, find=None) -> str:
Expand Down

0 comments on commit fe6c673

Please sign in to comment.