diff options
author | 2018-03-06 09:48:40 -0800 | |
---|---|---|
committer | 2018-03-06 09:51:23 -0800 | |
commit | ec1bd3c6dcf8620139330f0ed6ea2ccd235f83c1 (patch) | |
tree | 63e19ae5dc0921136395441de74069341ae3ab1c | |
parent | 338ae6819b2e09a362fecf6c867541a1b171c3c8 (diff) |
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 <dileep.ranganathan@intel.com>
-rw-r--r-- | conductor/conductor/controller/translator.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |