😥更新获取系统变量的方式

This commit is contained in:
Qinyang Liu 2024-07-03 10:37:17 +08:00 committed by GitHub
parent 0b776b8616
commit fe9f4ef675
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
run.py
View File

@ -26,7 +26,7 @@ if config["email_push"]["enable"] or config["rss_subscribe"]["enable"]:
server = email_settings["server"]
port = email_settings["port"]
use_tls = email_settings["use_tls"]
password = os.environ["SMTP_PWD"]
password = os.getenv["SMTP_PWD"]
if config["email_push"]["enable"]:
print("邮件推送已启用")