The new woob repository is here: This gitlab will be removed soon.

Commit 04a022a2 authored by Romain Bignon's avatar Romain Bignon

fix getting profiles when a photo is unavailable

parent d6c594f6
......@@ -29,7 +29,7 @@
except ImportError:
import simplejson as json
from import BaseBrowser, BrowserIncorrectPassword, BrowserUnavailable, BrowserHTTPNotFound
from import BaseBrowser, BrowserIncorrectPassword, BrowserUnavailable
from import ChatException, ChatMessage
from weboob.capabilities.messages import CantSendMessage
......@@ -368,7 +368,7 @@ def get_profile(self, id, with_pics=True):
url = '%simage1.jpg' % base_url
except BrowserHTTPNotFound:
except BrowserUnavailable:
profile['pictures'].append({'url': url, u'hidden': True, 'id': u'0', 'rating': 0.0})
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