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)