From 35ecdf764a111169049459ca1ff6f5eeb2dc7f80 Mon Sep 17 00:00:00 2001 From: DevilXD <4180725+DevilXD@users.noreply.github.com> Date: Mon, 16 Sep 2024 23:18:37 +0200 Subject: [PATCH] RequestInvalid is now a subclass of RequestException --- exceptions.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/exceptions.py b/exceptions.py index af3c23a..8c26d56 100644 --- a/exceptions.py +++ b/exceptions.py @@ -29,16 +29,6 @@ class ReloadRequest(MinerException): super().__init__("Application was requested to reload entirely") -class RequestInvalid(MinerException): - """ - Raised when a request becomes no longer valid inside its retry loop. - - Intended for internal use only. - """ - def __init__(self): - super().__init__("Request became invalid during its retry loop") - - class RequestException(MinerException): """ Raised for cases where a web request doesn't return what we wanted it to. @@ -50,6 +40,16 @@ class RequestException(MinerException): super().__init__("Unknown error during request") +class RequestInvalid(RequestException): + """ + Raised when a request becomes no longer valid inside its retry loop. + + Intended for internal use only. + """ + def __init__(self): + super().__init__("Request became invalid during its retry loop") + + class WebsocketClosed(RequestException): """ Raised when the websocket connection has been closed.