Fix RecursionError: maximum recursion depth exceeded

This commit is contained in:
croneter 2021-07-25 10:53:06 +02:00
parent cf9189380c
commit b1979262fe

View file

@ -33,8 +33,8 @@ def unix_date_to_kodi(unix_kodi_time):
"""
try:
return strftime('%Y-%m-%d %H:%M:%S', localtime(float(unix_kodi_time)))
except Exception:
LOG.exception('Received an illegal timestamp from Plex: %s. '
except:
LOG.error('Received an illegal timestamp from Plex: %s. '
'Using 1970-01-01 12:00:00',
unix_kodi_time)
return '1970-01-01 12:00:00'