Use gnocchiclient 4.0 exception types

It does not raise keystoneauth1 exceptions anymore.

Change-Id: I3c544911e63f2ef25ed1c0e7154de054dde02606
This commit is contained in:
Julien Danjou 2017-09-05 16:40:06 +02:00
parent 2ad4c95647
commit 3ed9ed1a0f
2 changed files with 2 additions and 3 deletions

View File

@ -351,8 +351,7 @@ class GnocchiDispatcher(dispatcher.MeterDispatcherBase,
try:
self.batch_measures(measures, gnocchi_data, stats)
except (gnocchi_exc.ClientException,
ka_exceptions.ConnectFailure) as e:
except gnocchi_exc.ClientException as e:
LOG.error(six.text_type(e))
except Exception as e:
LOG.error(six.text_type(e), exc_info=True)

View File

@ -32,7 +32,7 @@ data_files =
[extras]
gnocchi =
gnocchiclient>=3.1.0 # Apache-2.0
gnocchiclient>=4.0.0 # Apache-2.0
mongo =
pymongo!=3.1,>=3.0.2 # Apache-2.0
postgresql =