Commit b1bbf767 authored by Edouard Lambert's avatar Edouard Lambert Committed by Romain Bignon

[bforbank] change assertion to match multiple cards with 1 deferred

parent d8b74c43
......@@ -274,8 +274,8 @@ class CardPage(LoggedPage, HTMLPage):
card.type = Account.TYPE_CARD
# Crash on multiple cards if at least one is deferred
assert (len(divs) > 1 and not cards) or len(divs) == 1
# Crash on multiple cards if at least two are deferred
assert (len(divs) > 1 and len(cards) < 2) or len(divs) == 1
return cards[0] if cards else None
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