# HG changeset patch # User Paul Boddie # Date 1339346030 -7200 # Node ID 2c40bf10e284f504fdf71708338a2265788597ed # Parent 897aa8ac47290e75911b55c034723c4a8a8cea58 Fixed the branch nodes in try...except statements. diff -r 897aa8ac4729 -r 2c40bf10e284 micropython/inspect.py --- a/micropython/inspect.py Sun Jun 10 01:49:51 2012 +0200 +++ b/micropython/inspect.py Sun Jun 10 18:33:50 2012 +0200 @@ -1220,8 +1220,10 @@ self.new_branchpoint() + # NOTE: Attempt to recover abandoned branches from the body. + for name, var, n in node.handlers: - self.new_branch(node) + self.new_branch(n) # Establish the local for the handler.