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("-", "")