From d43c2d427f2c4758c50e4af08845bc64fce1ebfe Mon Sep 17 00:00:00 2001 From: __JosephAbbey Date: Thu, 24 Jul 2025 23:46:15 +0100 Subject: [PATCH] Update translate.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: __JosephAbbey --- translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate.py b/translate.py index bbc5ff5..80282e1 100644 --- a/translate.py +++ b/translate.py @@ -108,7 +108,7 @@ with open("./resources/strings/strings.xml", "r") as f: with open(f"./resources-{l[0]}/strings/strings.xml", "r", encoding="utf-8") as r: prev = BeautifulSoup(r.read().replace("\r", ""), features="xml") except FileNotFoundError: - prev = BeautifulSoup("", features=["xml"]) + prev = BeautifulSoup("", features="xml") try: with open(f"./resources-{l[0]}/strings/corrections.xml", "r", encoding="utf-8") as r: curr = BeautifulSoup(r.read().replace("\r", ""), features="xml")