Commit 77253657 authored by Guillaume Risbourg's avatar Guillaume Risbourg Committed by Vincent A

[creditmutuel] Add assert to ensure we have polling_data to do the polling

parent 65566c6d
......@@ -918,6 +918,7 @@ class CreditMutuelBrowser(TwoFactorBrowser):
msg = self.page.get_validation_msg()
if msg:
self.polling_data = self.page.get_polling_data(form_xpath='//form[contains(@action, "virements")]')
assert self.polling_data, "Can't proceed without polling data"
raise AppValidation(
resource=transfer,
message=msg,
......
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