Skip to content

Commit

Permalink
Fix error message in Client
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Jan 20, 2025
1 parent e03c44d commit 798da66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitchio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ async def login(self, *, token: str | None = None, load_tokens: bool = True, sav
raise RuntimeError('Expected a valid "client_id", instead received: %s', self._http.client_id)

if not token and not self._http.client_secret:
raise RuntimeError('Expected a valid "client_secret", instead received: %s', self._http.client_secret)
raise RuntimeError(f'Expected a valid "client_secret", instead received: {self._http.client_secret}',)

if not token:
payload: ClientCredentialsPayload = await self._http.client_credentials_token()
Expand Down

0 comments on commit 798da66

Please sign in to comment.