Skip to content

Commit be59a34

Browse files
committed
Ignore empty .cbi/config files
Signed-off-by: John Pennycook <[email protected]>
1 parent a1f3c70 commit be59a34

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

codebasin/config.py

+4
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ def _load_compilers():
198198
log.error(str(e))
199199
return
200200

201+
# Ignore empty configuration files.
202+
if "compiler" not in toml:
203+
return
204+
201205
for name, definition in toml["compiler"].items():
202206
# Check if the user is defining a new compiler.
203207
if name not in _compilers:

0 commit comments

Comments
 (0)