minor fix

This commit is contained in:
2025-07-08 18:34:01 +08:00
parent 0cd29e3584
commit ef23a41b12

View File

@@ -211,7 +211,7 @@ def main():
wait = WebDriverWait(driver, timeout=args.interval)
alert = wait.until(lambda x: x.find_element(By.CSS_SELECTOR, "div.io-ox-alert.io-ox-alert-error"))
except:
marks[index] = ''
marks[index-1] = ''
occurrence[0] += 1
global sent
sent += 1
@@ -232,10 +232,9 @@ def main():
except Exception as e:
print(f'[警告] 发生错误:{e}')
key = input('[????] 重试 (R) / 跳过 (S) / 取消 (C): ')
match key:
case 'R', 'r': continue
case 'S', 's': break
case _: active = False
if key in ['R', 'r']: continue
elif key in ['S', 's']: break
else: active = False
key = input('[????] 是否需要保存到文件?确定 (Y) / 取消 (N): ')
if key in ['Y', 'y']: