Commit f9fd97fa authored by Vincent Ardisson's avatar Vincent Ardisson Committed by Romain Bignon

[lcl] email profile may be missing

Closes: 603602@redmine 602408@redmine 600601@redmine 600344@redmine
parent a5519153
......@@ -37,7 +37,7 @@ from weboob.browser.elements import method, ListElement, TableElement, ItemEleme
from weboob.exceptions import ParseError
from weboob.browser.exceptions import ServerError
from weboob.browser.pages import LoggedPage, HTMLPage, FormNotFound, pagination
from weboob.browser.filters.html import Attr, Link, TableCell
from weboob.browser.filters.html import Attr, Link, TableCell, AttributeNotFound
from weboob.browser.filters.standard import CleanText, Field, Regexp, Format, Date, \
CleanDecimal, Map, AsyncLoad, Async, Env, \
Eval, Slugify
......@@ -1072,7 +1072,10 @@ class ProfilePage(LoggedPage, HTMLPage):
profile = Person() = name = Attr('//input[@id="textMail"]', 'value')(self.doc)
try: = Attr('//input[@id="textMail"]', 'value')(self.doc)
except AttributeNotFound:
nb = Attr('//input[@id="nbEnfant"]', 'value', default=NotAvailable)(self.doc)
if nb:
profile.children = Decimal(nb)
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