mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
fix(config): 更新配置成功时返回空字符串消息,修复保存设置 500 错误
This commit is contained in:
@@ -907,7 +907,8 @@ class Settings(BaseSettings, ConfigModel, LogConfigModel):
|
||||
"""
|
||||
更新 env 配置
|
||||
"""
|
||||
message = None
|
||||
# 成功且无提示时使用空字符串,保证与 Tuple[bool, str] 返回类型一致
|
||||
message = ""
|
||||
is_converted = original_value is not None and str(original_value) != str(
|
||||
converted_value
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user