From cb8dc30c7ccb880f33e4b34f551c52ab75563536 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 25 Jul 2021 10:53:06 +0200 Subject: [PATCH] Fix RecursionError: maximum recursion depth exceeded --- resources/lib/timing.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/lib/timing.py b/resources/lib/timing.py index 5f0f1909..885502fa 100644 --- a/resources/lib/timing.py +++ b/resources/lib/timing.py @@ -34,10 +34,10 @@ 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. ' - 'Using 1970-01-01 12:00:00', - unix_kodi_time) + 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'