Skip to content

Commit

Permalink
[Formatting] Re-formatting with black
Browse files Browse the repository at this point in the history
  • Loading branch information
gunyu1019 authored Nov 23, 2024
1 parent 4b506d4 commit 4462785
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chzzkpy/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class ChzzkpyException(Exception):

class LoginRequired(ChzzkpyException):
"""Exception that’s raised when a method need login."""

def __init__(self):
super(LoginRequired, self).__init__(
"This method(feature) needs to login. Please use `login()` method."
Expand All @@ -39,6 +40,7 @@ def __init__(self):

class NotFound(ChzzkpyException):
"""Exception that’s raised for when status code 404 occurs."""

def __init__(self, message: Optional[str] = None):
if message is None:
message = "Not Found"
Expand All @@ -47,6 +49,7 @@ def __init__(self, message: Optional[str] = None):

class HTTPException(ChzzkpyException):
"""Exception that’s raised when an HTTP request operation fails."""

def __init__(self, code: int, message: Optional[str] = None):
if message is None:
message = f"Reponsed error code ({code})"
Expand Down

0 comments on commit 4462785

Please sign in to comment.