From f05bd83e85342a00218b933d1567979a68537d89 Mon Sep 17 00:00:00 2001 From: Andy Blyler Date: Wed, 4 Oct 2023 15:34:03 -0400 Subject: [PATCH] Update auth exception class Signed-off-by: Andy Blyler --- aquahawk_client/client.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/aquahawk_client/client.py b/aquahawk_client/client.py index ee44177..a97ce08 100644 --- a/aquahawk_client/client.py +++ b/aquahawk_client/client.py @@ -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)