Skip to content

Commit a1a7161

Browse files
committed
1 parent 5ce4d4d commit a1a7161

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/request/comparison.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,16 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
128128
count += 1
129129
else:
130130
break
131+
131132
if count:
132-
seq1 = seq1[count:]
133-
seq2 = seq2[count:]
133+
try:
134+
_seq1 = seq1[count:]
135+
_seq2 = seq2[count:]
136+
except MemoryError:
137+
pass
138+
else:
139+
seq1 = _seq1
140+
seq2 = _seq2
134141

135142
while True:
136143
try:

0 commit comments

Comments
 (0)