mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Log when catching generic exceptions
This commit is contained in:
parent
064a02ad3c
commit
248b49c869
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue