mirror of
https://github.com/zhaarey/AppleMusicDecrypt.git
synced 2025-10-23 15:11:06 +00:00
fix: config read encoding
This commit is contained in:
@@ -54,6 +54,6 @@ class Config(BaseModel):
|
||||
|
||||
@classmethod
|
||||
def load_from_config(cls, config_file: str = "config.toml"):
|
||||
with open(config_file, "r") as f:
|
||||
with open(config_file, "r", encoding="utf-8") as f:
|
||||
config = tomllib.loads(f.read())
|
||||
return cls.parse_obj(config)
|
||||
|
||||
Reference in New Issue
Block a user