don't ignore decoding errors in config file
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user