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