Skip to content

Commit 011f929

Browse files
authored
Update emails_mert_can_fidan.py
I updated my code for satisfy new test updates.
1 parent 2566808 commit 011f929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Week05/emails_mert_can_fidan.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def validate(self, data: [str]) -> None:
2626
if isinstance(email, int):
2727
raise ValueError("Only string values accepted!")
2828
if not re.match(regex_pattern, email):
29-
raise ValueError("This is not an email adress!")
29+
raise ValueError(f"Invalid email format: {email}")

0 commit comments

Comments
 (0)