Little precaution

This commit is contained in:
Bernardo Damele 2010-11-18 14:32:52 +00:00
parent f6a17cb1a8
commit 544327379f

View File

@ -341,7 +341,8 @@ def resumeConfKb(expression, url, value):
logMsg = "resuming match ratio '%s' from session file" % matchRatio logMsg = "resuming match ratio '%s' from session file" % matchRatio
logger.info(logMsg) logger.info(logMsg)
conf.matchRatio = round(float(matchRatio), 3) if matchRatio not in ( "None", None ):
conf.matchRatio = round(float(matchRatio), 3)
elif expression == "Injection point" and url == conf.url: elif expression == "Injection point" and url == conf.url:
injPlace = value[:-1] injPlace = value[:-1]