as this account is not supported, raise a NotImplementedError instead of returning an empty list

This commit is contained in:
Romain Bignon 2012-09-28 18:26:08 +02:00
commit ec0cd86a8e

View file

@ -102,6 +102,6 @@ class SocieteGenerale(BaseBrowser):
if not self.is_on_page(AccountHistory):
# TODO: support other kind of accounts
self.logger.warning('This account is not supported')
return iter([])
raise NotImplementedError('This account is not supported')
return self.page.iter_transactions()