Commit ecf5aee1 authored by Sriram Karra's avatar Sriram Karra

Fix AttributeError while paring vCard file without "n" field

parent 967dbf6a
......@@ -222,7 +222,7 @@ class CDContact(Contact):
if not vco:
return
if vco.n and vco.n.value:
if hasattr(vco, 'n') and vco.n and vco.n.value:
if vco.n.value.given:
self.set_firstname(vco.n.value.given)
......
Markdown is supported
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