diff --git a/rtex/__init__.py b/rtex/__init__.py index 3b93d0b..27fdca4 100644 --- a/rtex/__init__.py +++ b/rtex/__init__.py @@ -1 +1 @@ -__version__ = "0.0.2" +__version__ = "0.0.3" diff --git a/rtex/client.py b/rtex/client.py index 89c806f..85cae41 100644 --- a/rtex/client.py +++ b/rtex/client.py @@ -8,7 +8,7 @@ import aiohttp from pydantic import validate_arguments from rtex.constants import DEFAULT_API_HOST, FORMAT_MIME -from rtex.exceptions import YouNeedToUseAContextManager +from rtex.exceptions import RtexError, YouNeedToUseAContextManager from rtex.models import ( CreateLaTeXDocumentRequest, CreateLaTeXDocumentResponse, @@ -159,7 +159,7 @@ class AsyncRtexClient: ) if res.status == "error": - raise RuntimeError("Failed to render code") + raise RtexError("Unknown error rendering code.") return await self.get_render( filename=res.filename,