diff --git a/邮件批量发送.py b/邮件批量发送.py index 1e95340..e660bf8 100644 --- a/邮件批量发送.py +++ b/邮件批量发送.py @@ -308,11 +308,12 @@ def main(): case hour if 6 <= hour < 12: hello = registry[0] case hour if 12 <= hour < 18: hello = registry[1] case hour if 18 <= hour < 21: hello = registry[2] - case _: hello = locale.get('default') + case _: hello = None iframe = driver.switch_to.active_element action = ActionChains(driver) clean = False + hello = hello or locale.get('default') if name is not None and (name := str(name).strip()) and not contains_non_latin_alphabet(name): parts = HumanName(name)