Merge "Correct reraising of exception"

This commit is contained in:
Jenkins 2016-12-15 15:00:12 +00:00 committed by Gerrit Code Review
commit f87211145b
1 changed files with 4 additions and 4 deletions

View File

@ -136,8 +136,8 @@ class ElasticSearchManager(object):
LOG.info('check if index: {0} exists or not'.format(index))
try:
return self.elk.indices.exists(index=index)
except elasticsearch.TransportError as e:
raise e
except elasticsearch.TransportError:
raise
def _check_mapping_exists(self, mappings):
LOG.info('check if mappings: {0} exists or not'.format(mappings))
@ -249,8 +249,8 @@ class ElasticSearchManager(object):
try:
return self.elk.indices.delete_mapping(self.index,
doc_type=doc_type)
except Exception as e:
raise e
except Exception:
raise
def remove_mappings(self):
"""