Browse files

fix bug where we returned on first item in list

  • Loading branch information...
1 parent fcb2882 commit 1dbabc1348c24d3c7a6187a9c1e821509da2b07f @alfredodeza committed Jun 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 notario/
@@ -89,15 +89,15 @@ def traverser(self, data, schema, tree):
leaf and there is no more to recurse into.
if len(data) < self.index:
- raise SchemaError(data, tree, reason="not enough items in data to select from")
+ raise SchemaError(data, tree, reason="has not enough items to select from")
self.leaves(data, self.schema, tree)
def leaves(self, data, schema, tree):
for item_index in range(self.index, len(data)):
if (data[item_index], dict) and isinstance(schema, tuple):
_validator = Validator(data[item_index], schema)
- return _validator.validate()
+ _validator.validate()
except Invalid:
e = sys.exc_info()[1]
tree.append('list[%s]' % item_index)

0 comments on commit 1dbabc1

Please sign in to comment.