1
0
mirror of https://github.com/sys-fs/seddy synced 2024-11-22 03:44:17 -05:00

Remove crash condition when the queue isn't full

This commit is contained in:
Thomas Mannay 2016-11-05 19:40:38 +00:00 committed by GitHub
parent a9e2c51d21
commit 7cd7aaabb9

View File

@ -52,7 +52,7 @@ class Queue:
if re.search(s, self.data[i]):
return self.data[i]
i -= 1
if i == self.tail-1:
if i == self.tail-1 or self.data[i] is None:
return False
def seddy(sed, history):