Skip to content

Commit

Permalink
fix: dependencies causing deployment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamgutgutia committed Dec 25, 2023
1 parent dd4428e commit 1a342d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .createDf import createDf
from .vcfGenerator import generateVcard,generateVcf
from .validateNumbers import validatePhoneNumber
# from .validateNumbers import validatePhoneNumber
14 changes: 7 additions & 7 deletions utils/validateNumbers.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import phonenumbers
# import phonenumbers

def validatePhoneNumber(number):
try:
parsedNumber = phonenumbers.parse(number)
return phonenumbers.is_valid_number(parsedNumber)
except phonenumbers.phonenumberutil.NumberParseException as e:
return False
# def validatePhoneNumber(number):
# try:
# parsedNumber = phonenumbers.parse(number)
# return phonenumbers.is_possible_number(parsedNumber)
# except phonenumbers.phonenumberutil.NumberParseException as e:
# return False

0 comments on commit 1a342d9

Please sign in to comment.