We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 402ba9e commit ddce27fCopy full SHA for ddce27f
1 file changed
olli/config.py
@@ -3,7 +3,7 @@
3
from pathlib import Path
4
from typing import Optional
5
6
-import toml
+import tomllib
7
from dotenv import load_dotenv
8
from loguru import logger
9
from pydantic import BaseModel, validator
@@ -113,8 +113,8 @@ def get_config() -> OlliConfig:
113
logger.critical("Could not find a config file. Please refer to the documentation.")
114
raise SystemExit(1)
115
116
- with open(config_file) as conf_file:
117
- return OlliConfig(**toml.load(conf_file))
+ with open(config_file, "rb") as conf_file:
+ return OlliConfig(**tomllib.load(conf_file))
118
119
120
CONFIG = get_config()
0 commit comments