Skip to content

Commit

Permalink
Added closing else block with assertion error.
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi committed Mar 28, 2016
1 parent fa2279d commit 1f8f0d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyorient/ogm/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ def filter_string(self, expression_root):
elif op is Operator.StartsWith:
return u'{0} like {1}'.format(
left_str, PropertyEncoder.encode_value(right + '%'))
else:
raise AssertionError('Unhandled Operator type: {}'.format(op))
else:
return u'{0} {1} {2}'.format(
self.filter_string(left)
Expand Down

0 comments on commit 1f8f0d7

Please # to comment.