Skip to content

Commit

Permalink
Fix spelling mistake on exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Feb 9, 2024
1 parent 2b2938a commit 85a30f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions twitchio/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from typing import TYPE_CHECKING


__all__ = ("TwitchioException", "TwichioHTTPException")
__all__ = ("TwitchioException", "TwitchioHTTPException")


if TYPE_CHECKING:
Expand All @@ -38,7 +38,7 @@ class TwitchioException(Exception):
# TODO: Document this class.


class TwichioHTTPException(TwitchioException):
class TwitchioHTTPException(TwitchioException):
"""Exception raised when an HTTP request fails."""
# TODO: Document this class.
# TODO: Add extra attributes to this class. E.g. response, status, etc.
Expand Down
4 changes: 2 additions & 2 deletions twitchio/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import aiohttp

from . import __version__
from .exceptions import TwichioHTTPException
from .exceptions import TwitchioHTTPException
from .utils import _from_json # type: ignore


Expand Down Expand Up @@ -129,7 +129,7 @@ async def request(self, method: HTTPMethod, endpoint: str, *, use_id: bool = Fal

if resp.status >= 400:
logger.error('Request %s failed with status %s: %s', route, resp.status, data)
raise TwichioHTTPException(f"Request {route} failed with status {resp.status}: {data}", route=route)
raise TwitchioHTTPException(f"Request {route} failed with status {resp.status}: {data}", route=route)

# TODO: This method is not complete. This is purely for testing purposes.
return data

0 comments on commit 85a30f8

Please sign in to comment.