File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,16 @@ def raise_if_zoom_link_invalid(vc_link):
23
23
def get_invited_emails (invited_from_form : str ) -> List [str ]:
24
24
invited_emails = []
25
25
if not invited_from_form :
26
- invited_emails .append ("" )
27
- else :
28
- for invited_email in invited_from_form .split ("," ):
29
- invited_email = invited_email .strip ()
30
- try :
31
- validate_email (invited_email , check_deliverability = False )
32
- except EmailSyntaxError :
33
- logging .exception (
34
- f"{ invited_email } is not a valid email address" ,
35
- )
36
- continue
26
+ return ["" ]
27
+ for invited_email in invited_from_form .split ("," ):
28
+ invited_email = invited_email .strip ()
29
+ try :
30
+ validate_email (invited_email , check_deliverability = False )
31
+ except EmailSyntaxError :
32
+ logging .exception (
33
+ f"{ invited_email } is not a valid email address" ,
34
+ )
35
+ else :
37
36
invited_emails .append (invited_email )
38
37
39
38
return invited_emails
You can’t perform that action at this time.
0 commit comments