Skip to content

Commit

Permalink
Remove custom Phone exception
Browse files Browse the repository at this point in the history
  • Loading branch information
armanddidierjean authored and maximeroucher committed Nov 16, 2024
1 parent 49eae10 commit ab9af31
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions app/types/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,3 @@ def __init__(self, email: str):
super().__init__(
f"An account with the email {email} already exist",
)


class PhoneNumberValidationError(Exception):
def __init__(self):
super().__init__("The phone number is not valid")
2 changes: 0 additions & 2 deletions app/utils/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

import phonenumbers

from app.types.exceptions import PhoneNumberValidationError


def password_validator(password: str) -> str:
"""
Expand Down

0 comments on commit ab9af31

Please sign in to comment.