mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 09:07:02 +02:00
Fix linter errors
This commit is contained in:
parent
00f87168e5
commit
f16d657c6a
5 changed files with 101 additions and 97 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue