Fix flake8-bugbear B042 violations in exception classes

This commit is contained in:
Alex Janousek
2025-10-24 14:03:35 -04:00
parent 6a4b69a493
commit 1357664dbd
12 changed files with 57 additions and 28 deletions

View File

@@ -29,6 +29,7 @@ GENERAL_TOKEN_ERROR_MESSAGE = TOKEN_MESSAGE_ONE + TOKEN_MESSAGE_TWO
class AuthError(Exception):
def __init__(self, message, code, service_id=None, api_key_id=None):
super().__init__(message, code, service_id, api_key_id)
self.message = {"token": [message]}
self.short_message = message
self.code = code