Merge pull request #1713 from croneter/py3-keyerror

Fix KeyError on playback startup
This commit is contained in:
croneter 2021-11-21 14:42:55 +01:00 committed by GitHub
commit 867bb0aa7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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