Method: pylint.checkers.design_analysis.MisdesignChecker.visit_tryexcept
Calls: 309, Exceptions: 0, Paths: 2Back
Path 1: 279 calls (0.9)
TryExcept (279)
1def visit_tryexcept(self, node: nodes.TryExcept) -> None:
2 """Increments the branches counter."""
3 branches = len(node.handlers)
4 if node.orelse:
5 branches += 1
6 self._inc_branch(node, branches)
7 self._inc_all_stmts(branches)
Path 2: 30 calls (0.1)
TryExcept (30)
1def visit_tryexcept(self, node: nodes.TryExcept) -> None:
2 """Increments the branches counter."""
3 branches = len(node.handlers)
4 if node.orelse:
5 branches += 1
6 self._inc_branch(node, branches)
7 self._inc_all_stmts(branches)