diff --git a/邮件批量发送.py b/邮件批量发送.py index ec0b106..1e95340 100644 --- a/邮件批量发送.py +++ b/邮件批量发送.py @@ -235,7 +235,7 @@ def main(): print(f'[信息] 预计使用时间 {timedelta(minutes=length / rate)}') print(f'[信息] 当前时区:{args.timezone or '无'}') - entries = list(filter(lambda it: it.locale == suffix, greetings)) + entries = list(filter(lambda it: it.get('locale') == suffix, greetings)) locale = dict(entries[0]) if len(entries) > 0 else None print(f'[信息] 当前语言:{str(suffix).upper() if locale else '无'}', end='\n\n')