Skip to content

Commit

Permalink
bugfix: configuration directory doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
djcopley committed Apr 27, 2024
1 parent 1736637 commit 433755c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shelloracle/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def write_shelloracle_config(provider: type[Provider], settings: dict[str, Any])
provider_configuration_table.add(setting, value)
provider_table.add(provider.name, provider_configuration_table)

Configuration.filepath.mkdir(exist_ok=True)
with Configuration.filepath.open("w") as config_file:
tomlkit.dump(config, config_file)

Expand Down

0 comments on commit 433755c

Please sign in to comment.