Commit e3e6584f authored by Bernhard Geier's avatar Bernhard Geier
Browse files

skip empty phone numbers

parent 96884d6d
......@@ -76,7 +76,7 @@ def putCids(lp, args, config):
if "tel" in vcard.contents:
for telno in vcard.contents['tel']:
num = tidyPhoneNumber(config, telno.value)
if "fn" in vcard.contents:
if num and "fn" in vcard.contents:
name = vcard.fn.value
print("Adding/updating Number: %s Name: %s" % (num, name), end="... ")
if not args.no_update:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment