From 0c9fa5c55078364d3be54268cb7a225d32fc87f7 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 17 Jun 2011 17:12:47 +0000 Subject: [PATCH] fix --- lib/request/comparison.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/comparison.py b/lib/request/comparison.py index 047699bdf..2b3fcbd65 100644 --- a/lib/request/comparison.py +++ b/lib/request/comparison.py @@ -98,7 +98,7 @@ def comparison(page, getRatioValue=False, pageLength=None): seqMatcher.set_seq2(seq2) if seq1 is None or seq2 is None: - ratio = None + return None else: ratio = round(seqMatcher.quick_ratio(), 3)