fix(bible): added inexplicableerror and handling for it
Some checks failed
Actions / Lint Code (Pylint) (push) Failing after 15s
Actions / Build Documentation (MkDocs) (push) Successful in 12s

This commit is contained in:
SeaswimmerTheFsh 2024-02-02 02:10:06 -05:00
parent 09302403b8
commit fda80d4e41
Signed by: cswimr
GPG key ID: B8953EC01E5C4063
2 changed files with 15 additions and 0 deletions

View file

@ -39,3 +39,14 @@ class ServiceUnavailable(Exception):
):
super().__init__(message)
self.message = message
class InexplicableError(Exception):
def __init__(
self,
message: str = error(
"An explicable 'Bad Request' error occurred. This error happens occassionally with the API.Bible service. Please try again. If the error persists, please report this to the bot owner."
),
):
super().__init__(message)
self.message = message