Merge pull request #1703 from croneter/py3-fix-indexerror

Fix playback report not working due to an IndexError
This commit is contained in:
croneter 2021-11-13 14:08:34 +01:00 committed by GitHub
commit 1bb91e8c20
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 (!) # playback startup, e.g. a Kodi audio index of 1953718901 (!)
try: try:
index = function(self.playerid) index = function(self.playerid)
except TypeError: except (TypeError, IndexError):
# No sensible reply yet # No sensible reply yet
pass pass
else: else: