From 33471366b95b32303314c6b4d3938cd768a28fc4 Mon Sep 17 00:00:00 2001 From: dreinon <67071425+dreinon@users.noreply.github.com> Date: Sun, 2 Jan 2022 21:14:30 +0100 Subject: [PATCH] Inherit from Exception Inherit from Exception instead of from BaseException. More info: [https://docs.python.org/3/tutorial/errors.html#tut-userexceptions](https://docs.python.org/3/tutorial/errors.html#tut-userexceptions) --- gotrue/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gotrue/exceptions.py b/gotrue/exceptions.py index e6198dce..9979410f 100644 --- a/gotrue/exceptions.py +++ b/gotrue/exceptions.py @@ -5,7 +5,7 @@ @dataclass -class APIError(BaseException): +class APIError(Exception): msg: str code: int