Skip to content

Commit a23748f

Browse files
committed
refactor: simplify config file opening syntax
1 parent e5eaab4 commit a23748f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datapilot/cli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def load_config_from_file():
1818
return {}
1919

2020
try:
21-
with Path.open(config_path) as f:
21+
with config_path.open() as f:
2222
config = json.load(f)
2323
return config
2424
except (OSError, json.JSONDecodeError) as e:

0 commit comments

Comments
 (0)