diff --git a/jwthenticator/client.py b/jwthenticator/client.py index 35ee580..5eca0d3 100644 --- a/jwthenticator/client.py +++ b/jwthenticator/client.py @@ -129,7 +129,7 @@ async def authenticate(self) -> None: :return: None or raises exception if fails. """ if self._key is None: - raise ValueError("Missing key") + raise TypeError("Missing key") url = urljoin(self.jwthenticator_server, "authenticate") request = schemas.AuthRequest(self._key, self.identifier) diff --git a/pyproject.toml b/pyproject.toml index b74da7e..7ff422f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ marshmallow = "^3.9" marshmallow-dataclass = "^8.3" pycryptodomex = "^3.9" environs = "^9.3.1" -asyncpg = { version = "^0.28.0", markers = "platform_python_implementation == 'CPython'" } +asyncpg = { version = "^0.28.0", markers = "platform_python_implementation == 'CPython'" } # pypy can not build asyncpg [tool.poetry.dev-dependencies]