Skip to content

Commit

Permalink
config: Don't fail if conf.toml is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
punchagan committed Oct 2, 2024
1 parent f9768ad commit 0ce6314
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@


def get_settings(path: Path) -> dict[str, str | list[str]]:
if not path.exists():
return {}
with open(path) as f:
return toml.load(f)["settings"]

Expand Down

0 comments on commit 0ce6314

Please sign in to comment.