try:
return find_obj(segments, depth, deepest_found)
except self.model.DoesNotExist:
# Then the deepest one was already found.
try:
return find_obj(segments, depth, deepest_found)
except self.model.DoesNotExist:
# Then the deepest one was already found.