throwing error when an sms is required to access information

This commit is contained in:
Vincent Paredes 2015-08-07 10:39:51 +02:00 committed by Romain Bignon
commit 678c717162

View file

@ -19,6 +19,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.base import UserError
from weboob.deprecated.browser import Browser, BrowserIncorrectPassword
from .pages.login import LoginPage
@ -81,6 +82,8 @@ class Fortuneo(Browser):
if self.is_on_page(AccountsList) and self.page.need_reload():
self.location('/ReloadContext?action=1&')
elif self.is_on_page(AccountsList):
raise UserError('Authentification with sms is not supported')
def get_investments(self, account):
self.location(account._link_id)