Skip to content

Commit

Permalink
Allow .env files to not exists as it will use environment
Browse files Browse the repository at this point in the history
Co-authored-by: fisher60 <[email protected]>
  • Loading branch information
GDWR and fisher60 committed May 12, 2022
1 parent 066f5c4 commit f20a42a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classy_config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def register_config(
if isinstance(filepath, str):
filepath = Path(filepath)

if not filepath.exists():
if not filepath.match("*.env") and not filepath.exists():
raise FileNotFoundError(filepath)

raw_config = loader(filepath)
Expand Down

0 comments on commit f20a42a

Please sign in to comment.