From ad6b2e9c212c6ee5bf2e2d99405cb83cfdb2720b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 4 Nov 2010 16:47:18 +0000 Subject: [PATCH] minor fix --- lib/controller/controller.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/controller/controller.py b/lib/controller/controller.py index 2c5886914..c7b17c819 100644 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -291,8 +291,9 @@ def start(): condition = True if condition: - conf.matchRatio = kb.paramMatchRatio[(kb.injPlace, kb.injParameter)] - setMatchRatio() + if kb.paramMatchRatio: + conf.matchRatio = kb.paramMatchRatio[(kb.injPlace, kb.injParameter)] + setMatchRatio() checkForParenthesis() action()