diff options
author | Kyomotoi <[email protected]> | 2023-02-05 22:01:19 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2023-02-05 22:01:19 +0800 |
commit | 233d4e5c484ee9a407a09db8ed8e41ff1140456f (patch) | |
tree | 0eb635345453f8952a786db68d572c31b1d808a9 | |
parent | 8506b82847ab8f6deed2046ad5fc3edc9398fc64 (diff) | |
download | ATRI-233d4e5c484ee9a407a09db8ed8e41ff1140456f.tar.gz ATRI-233d4e5c484ee9a407a09db8ed8e41ff1140456f.tar.bz2 ATRI-233d4e5c484ee9a407a09db8ed8e41ff1140456f.zip |
🚑️ 修复传入类型错误
-rw-r--r-- | ATRI/configs/create.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/configs/create.py b/ATRI/configs/create.py index a5596df..fac75de 100644 --- a/ATRI/configs/create.py +++ b/ATRI/configs/create.py @@ -85,8 +85,8 @@ def init_config(conf_path: Path, default_conf_path: Path): console.success("[white]至此, 所需基本配置已填写完毕[white]") raw_conf = default_conf_path.read_text("utf-8") - raw_conf = raw_conf.replace("{host}", host) - raw_conf = raw_conf.replace("{port}", port) + raw_conf = raw_conf.replace("{host}", str(host)) + raw_conf = raw_conf.replace("{port}", str(port)) raw_conf = raw_conf.replace("{superusers}", str(superusers.split(","))) raw_conf = raw_conf.replace("{access_token}", access_token) raw_conf = raw_conf.replace("{proxy}", proxy) |