Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d97e97d

Browse files
committed
minor update :)
1 parent 4a9bd3a commit d97e97d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/core/session.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,10 @@ def resumeConfKb(expression, url, value):
347347
logMsg = "resuming match ratio '%s' from session file" % matchRatio
348348
logger.info(logMsg)
349349

350-
if matchRatio not in ( "None", None ):
350+
try:
351351
conf.matchRatio = round(float(matchRatio), 3)
352+
except ValueError:
353+
pass
352354

353355
elif expression == "Injection point" and url == conf.url:
354356
injPlace = value[:-1]

0 commit comments

Comments
 (0)