Browse Source

Remove crash condition when the queue isn't full

master
Thomas Mannay GitHub 7 years ago
parent
commit
7cd7aaabb9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      seddy.py

+ 1
- 1
seddy.py 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):


Loading…
Cancel
Save