From 6ef001424501b9632191fd069bad0c5e0da53d83 Mon Sep 17 00:00:00 2001 From: Estelle Poulin Date: Sat, 18 Nov 2023 22:28:33 -0500 Subject: [PATCH] Use RtexError --- rtex/__init__.py | 2 +- rtex/client.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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,