mirror of
https://github.com/sys-fs/seddy
synced 2024-11-22 11:54:16 -05:00
Remove crash condition when the queue isn't full
This commit is contained in:
parent
a9e2c51d21
commit
7cd7aaabb9
2
seddy.py
2
seddy.py
@ -52,7 +52,7 @@ class Queue:
|
|||||||
if re.search(s, self.data[i]):
|
if re.search(s, self.data[i]):
|
||||||
return self.data[i]
|
return self.data[i]
|
||||||
i -= 1
|
i -= 1
|
||||||
if i == self.tail-1:
|
if i == self.tail-1 or self.data[i] is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def seddy(sed, history):
|
def seddy(sed, history):
|
||||||
|
Loading…
Reference in New Issue
Block a user