Merge pull request #1554 from croneter/py3-fix-recursion

Fix RecursionError: maximum recursion depth exceeded
This commit is contained in:
croneter 2021-07-25 10:58:25 +02:00 committed by GitHub
commit 6974cff389
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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