From 9054e5101967e0599a202e8c3e0b9c904fb048ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20L=C3=B3pez?= <37890430+felipaoo@users.noreply.github.com> Date: Mon, 15 Jan 2024 19:54:42 -0600 Subject: [PATCH] add `ServiceUnavailableError` (#195) * add ServiceUnavailableError * fix typehint * version --- fast_agave/exc.py | 5 +++++ fast_agave/version.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/fast_agave/exc.py b/fast_agave/exc.py index be1ee74..5727f5a 100644 --- a/fast_agave/exc.py +++ b/fast_agave/exc.py @@ -53,6 +53,11 @@ class FastAgaveViewError(FastAgaveError): status_code: int = 500 +@dataclass +class ServiceUnavailableError(FastAgaveError): + status_code: int = 503 + + @dataclass class RetryTask(Exception): countdown: Optional[int] = None diff --git a/fast_agave/version.py b/fast_agave/version.py index ef91994..092052c 100644 --- a/fast_agave/version.py +++ b/fast_agave/version.py @@ -1 +1 @@ -__version__ = '0.14.0' +__version__ = '0.14.1'