diff --git a/lib/core/session.py b/lib/core/session.py index 25c02ea8b..bf9cade18 100644 --- a/lib/core/session.py +++ b/lib/core/session.py @@ -341,7 +341,8 @@ def resumeConfKb(expression, url, value): logMsg = "resuming match ratio '%s' from session file" % matchRatio 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: injPlace = value[:-1]