Commit 3903bda5 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[bp] handle empty amount in history with default value

Closes: 580241@redmine
parent 328d026a
......@@ -26,6 +26,7 @@ from weboob.browser.filters.html import Link
from weboob.browser.pages import LoggedPage, pagination
from import Account
from weboob.capabilities.profile import Company
from weboob.capabilities.base import NotAvailable
from import urljoin, unicode
from .accounthistory import Transaction
......@@ -85,7 +86,8 @@ class ProAccountHistory(LoggedPage, MyHTMLPage):
obj_date = Date(CleanText('.//td[@headers="date"]'), dayfirst=True)
obj_raw = Transaction.Raw('.//td[@headers="libelle"]')
obj_amount = CleanDecimal('.//td[@headers="debit" or @headers="credit"]', replace_dots=True)
obj_amount = CleanDecimal('.//td[@headers="debit" or @headers="credit"]',
replace_dots=True, default=NotAvailable)
class DownloadRib(LoggedPage, MyHTMLPage):
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