Skip to content

Commit 346c4b7

Browse files
mwoutsCopilot
andauthored
Update src/itables/config.py
Co-authored-by: Copilot <[email protected]>
1 parent c7d6095 commit 346c4b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/itables/config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ def get_config_file(path: Path = Path.cwd()) -> Optional[Path]:
7070

7171

7272
def load_config_file(config_file: Path) -> ITableOptions:
73-
if tomllib is None:
74-
raise ImportError(f"Either tomllib or tomli is required to load {config_file}")
73+
raise ImportError(
74+
f"Either tomllib or tomli is required to load {config_file}. "
75+
"Install with 'pip install itables[config]' to enable TOML config support."
76+
)
7577

7678
with open(config_file, "rb") as fp:
7779
try:

0 commit comments

Comments
 (0)