minor update :)

This commit is contained in:
Miroslav Stampar 2010-11-19 09:02:44 +00:00
parent 4a9bd3a240
commit d97e97d884

View File

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