Skip to content

Commit

Permalink
Closes google#18512
Browse files Browse the repository at this point in the history
Fixing condition in vailidation.py.
  • Loading branch information
MateuszMirecki committed Feb 22, 2022
1 parent 9c7f174 commit 464a24e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Course3/Lab4/validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def validate_user(username, minlen):
"""Checks if the received username matches the required conditions."""
if type(username) != str:
raise TypeError("username must be a string")
raise TypeError("username must be a string ")
if minlen < 1:
raise ValueError("minlen must be at least 1")

Expand Down

0 comments on commit 464a24e

Please sign in to comment.