switch assertion to an explicit ValueError

This commit is contained in:
Benjamin Peterson 2012-09-25 11:48:50 -04:00
parent a820c7ca70
commit 1654d74e9a
2 changed files with 3 additions and 3 deletions

View file

@ -445,7 +445,7 @@ class RefactoringTool(object):
try:
find_root(node)
except AssertionError:
except ValueError:
# this node has been cut off from a
# previous transformation ; skip
continue