Skip to content

Commit

Permalink
[fix] Use actual python file existence function
Browse files Browse the repository at this point in the history
  • Loading branch information
georgejkaye committed Dec 19, 2023
1 parent 18fff52 commit 8e6f6e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/cookiebreaks/core/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_env_variable(name: str) -> str:

def get_secret(name: str) -> str:
file = get_env_variable(name)
if os.file.exists(file):
if os.path.exists(file):
with open(file) as f:
secret = f.readline().replace("\n", "")
else:
Expand Down

0 comments on commit 8e6f6e0

Please sign in to comment.