From 985caf1418c896b7957740e0ef00a9be30d81dcb Mon Sep 17 00:00:00 2001 From: Oleg Shpynov Date: Mon, 4 Oct 2010 11:19:51 +0400 Subject: [PATCH] Fix problem with try/except assignments#2 --- .../python/inspections/PyUnusedLocalInspectionVisitor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/python/src/com/jetbrains/python/inspections/PyUnusedLocalInspectionVisitor.java b/python/src/com/jetbrains/python/inspections/PyUnusedLocalInspectionVisitor.java index 58863e7d4019..57bebd953c93 100644 --- a/python/src/com/jetbrains/python/inspections/PyUnusedLocalInspectionVisitor.java +++ b/python/src/com/jetbrains/python/inspections/PyUnusedLocalInspectionVisitor.java @@ -190,6 +190,7 @@ class PyUnusedLocalInspectionVisitor extends PyInspectionVisitor { if (tryPart != null && !isAssignedOnEachExceptFlow(inst, tryPart, instructions, name)) { return ControlFlowUtil.Operation.NEXT; } + return ControlFlowUtil.Operation.CONTINUE; } return ControlFlowUtil.Operation.NEXT; }