Skip to content

Commit

Permalink
Fixed tiny issue when getting exceptions on elasticsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
cmanaha committed Feb 29, 2016
1 parent 697227e commit 9537863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmreshandler/cmreshandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ def flush(self):
actions=actions,
stats_only=True)
except Exception as e:
if self.raise_exceptions:
raise(e)
if self.raise_on_indexing_exceptions:
raise e
self._buffer = []

self.__schedule_flush()
Expand Down

0 comments on commit 9537863

Please sign in to comment.