Skip to content

Commit

Permalink
Ensure auth_file exists if we use it
Browse files Browse the repository at this point in the history
  • Loading branch information
JimCircadian committed Sep 22, 2023
1 parent b901fca commit dd405d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icenet_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def verify_password(username, password):
auth_file = os.getenv("ICENET_AUTH_LIST") or None
auth_entry = os.getenv("ICENET_AUTH_USER") or None

if auth_file is not None:
if auth_file is not None and os.path.exists(auth_file):
with open(auth_file, "r") as fh:
users = json.load(fh)
user_list.update({
Expand Down

0 comments on commit dd405d5

Please sign in to comment.