Skip to content

Commit

Permalink
Apply black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin-b committed Apr 27, 2023
1 parent aeaab8a commit ecb79e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions requests_auth/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@


class AuthenticationFailed(Exception):
""" User was not authenticated. """
"""User was not authenticated."""

def __init__(self):
Exception.__init__(self, "User was not authenticated.")


class TimeoutOccurred(Exception):
""" No response within timeout interval. """
"""No response within timeout interval."""

def __init__(self, timeout: float):
Exception.__init__(
Expand All @@ -21,14 +21,14 @@ def __init__(self, timeout: float):


class InvalidToken(Exception):
""" Token is invalid. """
"""Token is invalid."""

def __init__(self, token_name: str):
Exception.__init__(self, f"{token_name} is invalid.")


class GrantNotProvided(Exception):
""" Grant was not provided. """
"""Grant was not provided."""

def __init__(self, grant_name: str, dictionary_without_grant: dict):
Exception.__init__(
Expand Down Expand Up @@ -115,7 +115,7 @@ def _pop(key: str) -> str:


class StateNotProvided(Exception):
""" State was not provided. """
"""State was not provided."""

def __init__(self, dictionary_without_state: dict):
Exception.__init__(
Expand All @@ -124,7 +124,7 @@ def __init__(self, dictionary_without_state: dict):


class TokenExpiryNotProvided(Exception):
""" Token expiry was not provided. """
"""Token expiry was not provided."""

def __init__(self, token_body: dict):
Exception.__init__(self, f"Expiry (exp) is not provided in {token_body}.")

0 comments on commit ecb79e1

Please sign in to comment.