Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/core/payment/payment_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from helloasso_python.api.paiements_api import PaiementsApi
from helloasso_python.api_client import ApiClient
from helloasso_python.configuration import Configuration
from helloasso_python.exceptions import UnauthorizedException
from helloasso_python.exceptions import BadRequestException, UnauthorizedException
from helloasso_python.models.hello_asso_api_v5_models_carts_checkout_payer import (
HelloAssoApiV5ModelsCartsCheckoutPayer,
)
Expand Down Expand Up @@ -196,7 +196,7 @@ async def init_checkout(
self._helloasso_slug,
init_checkout_body,
)
except UnauthorizedException:
except (UnauthorizedException, BadRequestException):
# We know that HelloAsso may refuse some payer infos, like using the firstname "test"
# Even when prefilling the payer infos,the user will be able to edit them on the payment page,
# so we can safely retry without the payer infos
Expand Down
Loading