Skip to content

Commit 9182b4c

Browse files
committed
fix: handle ERROR type
1 parent a5bc2c1 commit 9182b4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scubatrace/statement.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ def block_variables(self) -> list[Identifier]:
816816
for identifier in self.block_identifiers:
817817
node = identifier.node
818818
if node.parent is not None and node.parent.type in [
819+
"ERROR",
819820
"call_expression",
820821
"function_declarator",
821822
"method_invocation",

0 commit comments

Comments
 (0)