Skip to content

Commit

Permalink
Update auth exception class
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Blyler <[email protected]>
  • Loading branch information
ablyler committed Oct 4, 2023
1 parent 19aaaad commit f05bd83
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion aquahawk_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,12 @@ async def authenticate(self):


class AuthenticationError(Exception):
"""Raised when authentication fails."""
"""Raised when authentication fails.
Attributes:
message -- explanation of the error
"""

def __init__(self, message="Authentication failed."):
self.message = message
super().__init__(self.message)

0 comments on commit f05bd83

Please sign in to comment.