File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 88from  helloasso_python .api .paiements_api  import  PaiementsApi 
99from  helloasso_python .api_client  import  ApiClient 
1010from  helloasso_python .configuration  import  Configuration 
11- from  helloasso_python .exceptions  import  UnauthorizedException 
11+ from  helloasso_python .exceptions  import  BadRequestException ,  UnauthorizedException 
1212from  helloasso_python .models .hello_asso_api_v5_models_carts_checkout_payer  import  (
1313    HelloAssoApiV5ModelsCartsCheckoutPayer ,
1414)
@@ -196,7 +196,7 @@ async def init_checkout(
196196                        self ._helloasso_slug ,
197197                        init_checkout_body ,
198198                    )
199-                 except  UnauthorizedException :
199+                 except  ( UnauthorizedException ,  BadRequestException ) :
200200                    # We know that HelloAsso may refuse some payer infos, like using the firstname "test" 
201201                    # Even when prefilling the payer infos,the user will be able to edit them on the payment page, 
202202                    # so we can safely retry without the payer infos 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments