Forces the program to end when a CAPTCHA is detected to be required during login.

This commit is contained in:
NianBroken
2024-07-15 19:20:24 +08:00 Unverified
parent ae03af5a50
commit e127708411
+1 -1
View File
@@ -25,7 +25,7 @@ def login(url, username, password):
if cookies == {}:
lgn = student_client.login(username, password)
if lgn["code"] == 1001:
sys.exit("你的教务系统登录需要验证码,因此你无法使用此项目。")
sys.exit("你的教务系统登录需要验证码,因此你无法使用此项目。")
"""
verify_data = lgn["data"]
with open(os.path.abspath("kaptcha.png"), "wb") as pic: