From d0d881952cea0c4589ee1faed839585301cb6227 Mon Sep 17 00:00:00 2001 From: armanddidierjean <95971503+armanddidierjean@users.noreply.github.com> Date: Tue, 23 Jul 2024 12:52:44 +0200 Subject: [PATCH 1/2] Export HaApiV5 exceptions --- helloasso_api_wrapper/exceptions.py | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 helloasso_api_wrapper/exceptions.py diff --git a/helloasso_api_wrapper/exceptions.py b/helloasso_api_wrapper/exceptions.py new file mode 100644 index 0000000..710ddbe --- /dev/null +++ b/helloasso_api_wrapper/exceptions.py @@ -0,0 +1,45 @@ +from helloasso_api.exceptions import ( + ApiV5AuthenticationError as ApiV5AuthenticationError, +) +from helloasso_api.exceptions import ( + ApiV5BadRequest as ApiV5BadRequest, +) +from helloasso_api.exceptions import ( + ApiV5Conflict as ApiV5Conflict, +) +from helloasso_api.exceptions import ( + ApiV5ConnectionError as ApiV5ConnectionError, +) +from helloasso_api.exceptions import ( + ApiV5Error as ApiV5Error, +) +from helloasso_api.exceptions import ( + Apiv5ExceptionError as Apiv5ExceptionError, +) +from helloasso_api.exceptions import ( + ApiV5Forbidden as ApiV5Forbidden, +) +from helloasso_api.exceptions import ( + ApiV5IncorrectMethod as ApiV5IncorrectMethod, +) +from helloasso_api.exceptions import ( + ApiV5NoConfig as ApiV5NoConfig, +) +from helloasso_api.exceptions import ( + ApiV5NotFound as ApiV5NotFound, +) +from helloasso_api.exceptions import ( + ApiV5RateLimited as ApiV5RateLimited, +) +from helloasso_api.exceptions import ( + ApiV5ServerError as ApiV5ServerError, +) +from helloasso_api.exceptions import ( + ApiV5Timeout as ApiV5Timeout, +) +from helloasso_api.exceptions import ( + ApiV5Unauthorized as ApiV5Unauthorized, +) +from helloasso_api.exceptions import ( + Apiv5ValueError as Apiv5ValueError, +) From 2c3bfd99de08f40171757997222ea14bce82afd0 Mon Sep 17 00:00:00 2001 From: armanddidierjean <95971503+armanddidierjean@users.noreply.github.com> Date: Tue, 23 Jul 2024 12:58:58 +0200 Subject: [PATCH 2/2] Ignore missing types in helloasso_api.exceptions --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 54b9693..2669fb3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -129,5 +129,5 @@ strict = true disallow_any_generics = false [[tool.mypy.overrides]] -module = ["helloasso_api"] +module = ["helloasso_api", "helloasso_api.exceptions"] ignore_missing_imports = true