Skip to content

Commit

Permalink
Added exception handling to save index
Browse files Browse the repository at this point in the history
  • Loading branch information
pkittenis committed Nov 9, 2016
1 parent 091fc49 commit 0f95a24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions influxgraph/classes/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,10 @@ def save_index(self):
logger.error("Error writing to index file %s - %s",
self.index_path, ex)
return
except Exception as ex:
logger.error("Error saving index file %s - %s",
self.index_path, ex)
return
logger.info("Wrote index file to %s", self.index_path)

def load_index(self):
Expand Down

0 comments on commit 0f95a24

Please sign in to comment.