fix fill of contact photos when we can't fetch profile

This commit is contained in:
Romain Bignon 2010-08-30 18:20:01 +02:00
commit 08336eeb1f

View file

@ -297,7 +297,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
def fill_contact(self, contact, fields):
if 'profile' in fields:
contact = self.get_contact(contact)
if 'photos' in fields:
if 'photos' in fields and contact.photos:
for name, photo in contact.photos.iteritems():
with self.browser:
if photo.url: