Skip to content

Commit

Permalink
don't ignore decoding errors in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Mar 6, 2025
1 parent 250a8fa commit c068ebc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions proxy_scraper_checker/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c068ebc

Please sign in to comment.