first chapter
This commit is contained in:
1 parent
8502d81972
commit
e8b18d2ff0
1 file changed
+1
-1
+1
-1
@@ -61,5 +61,5 @@ class UserMaxLength(BaseModel):
|
||||
if value < 0:
|
||||
raise ValidationError("age must be positive")
|
||||
if value < 18:
|
||||
raise ValueError("You are too young to register")
|
||||
raise ValidationError("You are too young to register")
|
||||
return value
|
||||
Reference in new issue
Block a user