From b0af9475edb6472d12015e22c4701491b2bf296e Mon Sep 17 00:00:00 2001 From: Keith Thompson Date: Sun, 10 Mar 2024 08:47:41 -0400 Subject: [PATCH] Split config lines on the first equal sign (#504) --- sgpt/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgpt/config.py b/sgpt/config.py index 6dad7161..981cba74 100644 --- a/sgpt/config.py +++ b/sgpt/config.py @@ -75,7 +75,7 @@ def _read(self) -> None: with open(self.config_path, "r", encoding="utf-8") as file: for line in file: if line.strip() and not line.startswith("#"): - key, value = line.strip().split("=") + key, value = line.strip().split("=", 1) self[key] = value def get(self, key: str) -> str: # type: ignore