From 08336eeb1f37f0d869f4b89a0aed29cbe9912bb4 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 30 Aug 2010 18:20:01 +0200 Subject: [PATCH] fix fill of contact photos when we can't fetch profile --- weboob/backends/aum/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/backends/aum/backend.py b/weboob/backends/aum/backend.py index 029f8f34..fe5b0d12 100644 --- a/weboob/backends/aum/backend.py +++ b/weboob/backends/aum/backend.py @@ -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: