Skip to content

Commit

Permalink
More explicit differentiation between exception classes
Browse files Browse the repository at this point in the history
Co-authored-by: Joseph H Kennedy <me@jhkennedy.org>
  • Loading branch information
mfisher87 and jhkennedy authored Feb 11, 2025
1 parent 57535b2 commit 1c5de64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions earthaccess/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ class LoginStrategyUnavailable(Exception):
This should be raised when a login strategy can't be attempted, for example because
"environment" was selected but the envvars are not populated.
DO NOT raise this exception when a login strategy is attempted and failed, for
example because credentials were rejected.
DO NOT raise this exception when a login strategy is attempted and fails. For
example, this exception would not be thrown when credentials were rejected;
a `LoginAttemptFailure` should be thrown instead.
"""

pass
Expand Down

0 comments on commit 1c5de64

Please sign in to comment.