Use gnocchiclient 4.0 exception types
It does not raise keystoneauth1 exceptions anymore. Change-Id: I3c544911e63f2ef25ed1c0e7154de054dde02606
This commit is contained in:
parent
2ad4c95647
commit
3ed9ed1a0f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user