Skip to content

Commit

Permalink
Fix python 2.x issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
c0fec0de committed Mar 10, 2017
1 parent 45392a0 commit 0fc74be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anytree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def get(self, node, path):
names = ", ".join([repr(key) for key in nodemap.keys()])
msg = "%r has no child %s. Children are: %s."
msg = msg % (node, part, names)
raise ResolverError(node, part, msg) from None
raise ResolverError(node, part, msg)
return node

def _get_part(self, node):
Expand Down

0 comments on commit 0fc74be

Please sign in to comment.