-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dependencies causing deployment issues
- Loading branch information
1 parent
dd4428e
commit 1a342d9
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |