@@ -1299,9 +1299,12 @@ async def partnership_submit(request: PartnershipRequest):
12991299 data = PartnershipRequest (** data )
13001300
13011301 try :
1302- validate_email (data .email , check_deliverability = True )
1303- except EmailNotValidError as e :
1304- return JSONResponse (status_code = 400 , content = {"error" : "Please use a valide email" })
1302+ validate_email (data .email , check_deliverability = True )
1303+ except EmailNotValidError :
1304+ return JSONResponse (
1305+ status_code = 400 ,
1306+ content = {"error" : "Please use a valide email" },
1307+ )
13051308
13061309 # Normalize boolean fields
13071310 agree_privacy = data .agree_privacy in (True , "true" , "True" , "on" , "1" , 1 )
@@ -1346,9 +1349,12 @@ async def join_submit(request: Request):
13461349 data = JoinRequest (** data )
13471350
13481351 try :
1349- validate_email (data .email , check_deliverability = True )
1350- except EmailNotValidError as e :
1351- return JSONResponse (status_code = 400 , content = {"error" : "Please use a valide email" })
1352+ validate_email (data .email , check_deliverability = True )
1353+ except EmailNotValidError :
1354+ return JSONResponse (
1355+ status_code = 400 ,
1356+ content = {"error" : "Please use a valide email" },
1357+ )
13521358
13531359 # Normalize boolean fields
13541360 agree_privacy = data .agree_privacy in (True , "true" , "True" , "on" , "1" , 1 )
@@ -1393,11 +1399,14 @@ async def contact_submit(request: Request):
13931399 data = ContactSubmit (** data )
13941400
13951401 try :
1396- validate_email (data .email , check_deliverability = True )
1397- except EmailNotValidError as e :
1398- return JSONResponse (status_code = 400 , content = {"error" : "Please use a valide email" })
1402+ validate_email (data .email , check_deliverability = True )
1403+ except EmailNotValidError :
1404+ return JSONResponse (
1405+ status_code = 400 ,
1406+ content = {"error" : "Please use a valide email" },
1407+ )
13991408
1400- agree_privacy = data .agree_coc in (True , "true" , "True" , "on" , "1" , 1 )
1409+ agree_privacy = data .agree_privacy in (True , "true" , "True" , "on" , "1" , 1 )
14011410 agree_coc = data .agree_coc in (True , "true" , "True" , "on" , "1" , 1 )
14021411 if not agree_privacy or not agree_coc :
14031412 return JSONResponse (status_code = 400 , content = {"error" : "consent_required" })
0 commit comments