From b4199d3faa59bd7a95a17a6b5fdf3cc110458c09 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Thu, 22 May 2025 14:40:14 +0300 Subject: [PATCH] [+] add tomllib option for toml_load --- .../fxreader/pr34/commands_typed/cli_bootstrap.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py b/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py index 14d20a1..06f837e 100644 --- a/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py +++ b/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py @@ -29,12 +29,12 @@ logger = logging.getLogger(__name__) def toml_load(f: BinaryIO) -> Any: - # try: - # import tomllib - # - # return tomllib.load(f) - # except: - # pass + try: + import tomllib + + return tomllib.load(f) + except: + pass try: import tomli