Skip to content

Commit

Permalink
fix(auth): correct conditional logic in fetch_credentials function
Browse files Browse the repository at this point in the history
  • Loading branch information
not-lain committed Jan 4, 2025
1 parent 3979f3a commit 7035d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/fal_client/src/fal_client/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class MissingCredentialsError(Exception):
def fetch_credentials() -> str:
if colab_token := get_colab_token():
return colab_token
elif key := os.getenv("FAL_KEY"):
if key := os.getenv("FAL_KEY"):
return key
elif (key_id := os.getenv("FAL_KEY_ID")) and (
fal_key_secret := os.getenv("FAL_KEY_SECRET")
Expand Down

0 comments on commit 7035d27

Please sign in to comment.