From ec1bd3c6dcf8620139330f0ed6ea2ccd235f83c1 Mon Sep 17 00:00:00 2001 From: Dileep Ranganathan Date: Tue, 6 Mar 2018 09:48:40 -0800 Subject: [PATCH] Fix UnboundlocalError in translator.py Defined and initialized variable nested in the scope Change-Id: Idfffc95490f8a11dd0377a8e50a4737e708ecfc7 Issue-ID: OPTFRA-163 Signed-off-by: Dileep Ranganathan --- conductor/conductor/controller/translator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/conductor/conductor/controller/translator.py b/conductor/conductor/controller/translator.py index 62c965e..45eab8d 100644 --- a/conductor/conductor/controller/translator.py +++ b/conductor/conductor/controller/translator.py @@ -707,6 +707,7 @@ class Translator(object): for operand in operands: weight = 1.0 args = None + nested = False if operand.keys() == ['distance_between']: # Value must be a list of length 2 with one -- 2.16.6