don't ignore decoding errors in config file

This commit is contained in:
monosans
2025-03-06 10:12:55 +03:00
parent 250a8fa1eb
commit c068ebc7d1
+1 -3
View File
@@ -91,9 +91,7 @@ def get_summary_table(
async def main() -> None:
config = tomllib.loads(
await asyncio.to_thread(
Path("config.toml").read_text, encoding="utf-8", errors="replace"
)
await asyncio.to_thread(Path("config.toml").read_text, encoding="utf-8")
)
if config["debug"]:
logging.root.setLevel(logging.DEBUG)