Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Oct 16, 2023
1 parent db2e5d2 commit deaff71
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dsp_permissions_scripts/utils/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ def _get_login_credentials(host: str) -> tuple[str, str]:
else:
user = os.getenv("DSP_USER_EMAIL") or ""
pw = os.getenv("DSP_USER_PASSWORD") or ""
assert user
assert pw
if not user or not pw:
raise NameError(
"Missing credentials: Your username/password could not be retrieved. "
"Please define 'DSP_USER_EMAIL' and 'DSP_USER_PASSWORD' in the file '.env'."
)
return user, pw


Expand Down

0 comments on commit deaff71

Please sign in to comment.