mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
switch assertion to an explicit ValueError
This commit is contained in:
parent
a820c7ca70
commit
1654d74e9a
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue