Fix exception on insert

This commit is contained in:
Joscha 2018-08-12 14:58:59 +00:00
parent 328d268a71
commit 8ff1b544b7

View file

@ -142,7 +142,7 @@ class Playlist:
position = len(self.waiting)
self.waiting.append(element)
return position
elif position >= 0:
elif before >= 0:
self.waiting.insert(before, element)
return before
else: