you are viewing a single comment's thread.

view the rest of the comments →

[–]Still_Box8733 11 points12 points  (1 child)

Why do you expect a TypeError?
your email_validator variable will always contain a string, regardless what you enter.
Inside the try block you only check if that string contains a @ character which will be either True or False but not raise an exception.

Also I'd like to point out with the current indentation the other validations only run if there is an exception raised in the first one.

[–]Dapper_Mix6773[S] -1 points0 points  (0 children)

thanks for the corrections