Filter does not have any logger, raise an exception instead

This commit is contained in:
Romain Bignon 2014-05-19 22:07:34 +02:00
commit 5c8982e5e9

View file

@ -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