Fix linter errors

This commit is contained in:
Seamus Johnston 2022-09-22 15:57:40 -05:00
parent 00f87168e5
commit f16d657c6a
No known key found for this signature in database
GPG key ID: 2F21225985069105
5 changed files with 101 additions and 97 deletions

View file

@ -9,16 +9,12 @@ class OIDCException(Exception):
`.locator`, if used, should be a useful, unique identifier for
locating related log messages.
"""
status = status.INTERNAL_SERVER_ERROR
friendly_message = "A server error occurred."
locator = None
def __init__(
self,
friendly_message=None,
status=None,
locator=None
):
def __init__(self, friendly_message=None, status=None, locator=None):
if friendly_message is not None:
self.friendly_message = friendly_message
if status is not None:
@ -43,4 +39,4 @@ class InternalError(OIDCException):
class BannedUser(AuthenticationFailed):
friendly_message = "Your user is not valid in this application."
friendly_message = "Your user is not valid in this application."