Commit 5c8982e5 authored by Romain Bignon's avatar Romain Bignon

Filter does not have any logger, raise an exception instead

parent e234ccfb
......@@ -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
......
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