From a94ddce93a21abf27d5ff0942a8aeb07a0be2dbd Mon Sep 17 00:00:00 2001 From: p0ps Date: Fri, 22 Apr 2022 15:02:14 +0200 Subject: [PATCH] Fix isoFormat on None. (#10524) --- 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']]