Log when catching generic exceptions

This commit is contained in:
Odd Stråbø 2024-02-07 08:54:53 +01:00 committed by GitHub
parent 064a02ad3c
commit 248b49c869
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -329,7 +329,9 @@ class Player(xbmc.Player):
try:
item['CurrentPosition'] = int(self.getTime())
except Exception: # at this point we should be playing and if not then bail out
except Exception as e:
# getTime() raises RuntimeError if nothing is playing
LOG.debug("Failed to get playback position: %s", e)
return
if int(item['CurrentPosition']) == 1: