Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
john-labbate authored Mar 11, 2024
1 parent 05cfe93 commit 066c327
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion training/schemas/gspc_invite.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class GspcInvite(BaseModel):
@field_validator('certification_expiration_date')
@classmethod
def check_certification_expiration_date(cls, value):
value is datetime
if value < datetime.now(timezone.utc):
raise ValueError("Certification expiration date cannot be in the past")
return value
Expand Down

0 comments on commit 066c327

Please sign in to comment.