From 7cd7aaabb98c4da3a21d3da0e046cc37a0e0881e Mon Sep 17 00:00:00 2001 From: Thomas Mannay Date: Sat, 5 Nov 2016 19:40:38 +0000 Subject: [PATCH] Remove crash condition when the queue isn't full --- seddy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seddy.py b/seddy.py index c85229a..a8cadc7 100644 --- a/seddy.py +++ b/seddy.py @@ -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):