From 6280f848fe97b6a1fd9e210a32c2ed01b781d104 Mon Sep 17 00:00:00 2001 From: diegantobass Date: Thu, 8 May 2025 11:14:57 +0200 Subject: [PATCH] wrap up --- vcf_cleaner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vcf_cleaner.py b/vcf_cleaner.py index 72f6b42..1b5ca62 100644 --- a/vcf_cleaner.py +++ b/vcf_cleaner.py @@ -44,9 +44,10 @@ for line in input_file: contact.custom.pop("PHOTO", None) # reformat phone numbers to international - # TODO : distinguish phone numbers in final vcard (hint : "type" ?!) clean_tel = [] for number in contact.tel: + if number["type"] != []: + print(number["type"]) try: number = number["value"] number = number.replace("-", "")