Fix KeyError on playback startup

This commit is contained in:
croneter 2021-11-19 08:47:32 +01:00
parent d4b26b76d4
commit 67e46e706c

View file

@ -230,7 +230,7 @@ class PlaylistItem(object):
# playback startup, e.g. a Kodi audio index of 1953718901 (!) # playback startup, e.g. a Kodi audio index of 1953718901 (!)
try: try:
index = function(self.playerid) index = function(self.playerid)
except (TypeError, IndexError): except (TypeError, IndexError, KeyError):
# No sensible reply yet # No sensible reply yet
pass pass
else: else: