Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion slither/solc_parsing/declarations/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,9 @@ def _fix_catch(self, node: Node, end_node: Node, visited: Set[Node]) -> None:
link_nodes(node, end_node)
else:
for son in node.sons:
if son != end_node and son not in visited:
# If the son is a TRY node it will be fixed later when _fix_try is called with that node
# otherwise we try to fix it multiple times. It can happen in the case of nested try-catch blocks.
if son != end_node and son not in visited and son.type != NodeType.TRY:
visited.add(son)
self._fix_catch(son, end_node, visited)

Expand Down