Filter does not have any logger, raise an exception instead
This commit is contained in:
parent
e234ccfbb1
commit
5c8982e5e9
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ from weboob.capabilities import NotAvailable, NotLoaded
|
|||
from weboob.tools.misc import to_unicode
|
||||
from weboob.tools.log import getLogger
|
||||
|
||||
from weboob.tools.exceptions import ParseError
|
||||
from weboob.tools.browser2.page import TableElement, ItemElement
|
||||
from weboob.tools.browser2.filters import Filter, CleanText, CleanDecimal, TableCell
|
||||
|
||||
|
|
@ -279,7 +280,7 @@ class FrenchTransaction(Transaction):
|
|||
else:
|
||||
item.obj.rdate = datetime.date(yy, mm, dd)
|
||||
except ValueError as e:
|
||||
self._logger.warning('Unable to date in label %r: %s' % (raw, e))
|
||||
raise ParseError('Unable to date in label %r: %s' % (raw, e))
|
||||
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue