Commit 67e504a7 authored by Christophe Francois's avatar Christophe Francois Committed by Vincent A

[creditmutuel] Remove default value from Link in iter_market_orders

Regexp crashes if it receives NotAvailable instead of a string. I
couldn't find any example of a crash so I just removed the useless
default value.
parent cfeaa4be
......@@ -1932,7 +1932,7 @@ class PorMarketOrdersPage(PorHistoryPage):
def condition(self):
return 'Remboursement' not in CleanText('.')(self)
obj_id = Base(TableCell('direction'), Regexp(Link('.//a', default=NotAvailable), r'ref=([^&]+)'))
obj_id = Base(TableCell('direction'), Regexp(Link('.//a'), r'ref=([^&]+)'))
obj_direction = Map(
CleanText(TableCell('direction')),
MARKET_ORDER_DIRECTIONS,
......
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