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
This commit is contained in:
Doug Szumski 2019-04-11 09:18:13 +01:00
parent e5ed3be08d
commit f43d019a67

View File

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