Commit 484cb39c authored by Saul Ibarra's avatar Saul Ibarra

Fixed exception if Google contact has no name nor company

parent 7745b725
......@@ -990,7 +990,7 @@ class Contact(object):
if isinstance(self.settings, BonjourNeighbour):
return '%s (%s)' % (self.settings.name, self.settings.hostname)
elif isinstance(self.settings, GoogleContact):
return self.settings.name or self.settings.company
return self.settings.name or self.settings.company or u''
else:
return self.settings.name
......
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