Skip to content

Commit

Permalink
routers: return instead of StopIteration()
Browse files Browse the repository at this point in the history
  • Loading branch information
iksaif authored Aug 27, 2018
1 parent 7267d02 commit b6f4859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/carbon/routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def remove_node(self, node):

def get_nodes(self, key):
if not self.nodes:
raise StopIteration()
return

seed = self._hash(key) % len(self.nodes)

Expand Down

0 comments on commit b6f4859

Please sign in to comment.