diff --git a/邮件批量发送脚本.py b/邮件批量发送脚本.py index 16178ce..f58677b 100644 --- a/邮件批量发送脚本.py +++ b/邮件批量发送脚本.py @@ -332,8 +332,7 @@ def main(): sents[current] = '❌' message = alert.text.replace('\n', ' ') - if not message: raise Exception('程序异常。请保持页面在前台显示,避免遮挡或最小化') - print(f'[警告] ({attempt}): {message}') + print(f'[警告] ({attempt}): {message or '未知错误'}') # 关闭警告 click("div.io-ox-alert.io-ox-alert-error button[data-action='close']")