fix fill of contact photos when we can't fetch profile
This commit is contained in:
parent
3102e79e51
commit
08336eeb1f
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue