Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
better error checking for leftovers with elasticsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
cglewis committed Oct 31, 2013
1 parent c7cfc05 commit f255b30
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hemlock/clients/hemlock_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,12 @@ def send_data(self, debug, data_list, desc_list, h_server, client_uuid, no_couch
t_dict = {}
i += 1
if no_couchbase:
h_server.refresh()
if t_dict:
try:
h_server.refresh()
except:
e += 1
print "Failure."
else:
# requires couchbase 1.0 client
if t_dict:
Expand Down

0 comments on commit f255b30

Please sign in to comment.