From a35c39fa7e69d312395eea7e6b245aa3e56aeb2a Mon Sep 17 00:00:00 2001 From: p0psicles Date: Fri, 22 Apr 2022 14:46:23 +0200 Subject: [PATCH] Fix isoFormat on None. --- medusa/server/api/v2/internal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/medusa/server/api/v2/internal.py b/medusa/server/api/v2/internal.py index 8267b2554d..d8789a11fb 100644 --- a/medusa/server/api/v2/internal.py +++ b/medusa/server/api/v2/internal.py @@ -406,7 +406,7 @@ def resource_get_episode_backlog(self): cur_ep_cat_string = Overview.overviewStrings[cur_ep_cat] ep_cats[episode_string] = cur_ep_cat_string ep_counts[cur_ep_cat_string] += 1 - cur_result['airdate'] = air_date.isoformat('T') + cur_result['airdate'] = air_date.isoformat('T') if air_date else '' cur_result['manuallySearched'] = cur_result['manually_searched'] del cur_result['manually_searched'] cur_result['statusString'] = statusStrings[cur_result['status']]