Widen exception catch for point parse failure
This change supports catching more parse errors which can jam
the persistor, such as:
`partial write: unable to parse 'string_with_invalid_char.%'`.
Change-Id: Ia12d04708a88308e88fcbd488d72f4313ba42a36
Story: 2005430
Task: 30468
(cherry picked from commit f43d019a67
)
This commit is contained in:
parent
4c5b38a282
commit
dbca7b6062
|
@ -64,8 +64,8 @@ class Persister(object):
|
|||
self._consumer.commit()
|
||||
|
||||
elif cfg.CONF.repositories.ignore_parse_point_error \
|
||||
and "unable to parse points" in ex.message:
|
||||
LOG.warning("Some points unable to parse were dropped")
|
||||
and "unable to parse" in ex.message:
|
||||
LOG.warning("Some points were unable to be parsed and were dropped")
|
||||
self._data_points = []
|
||||
self._consumer.commit()
|
||||
|
||||
|
|
Loading…
Reference in New Issue