From b738922b0cc097693d7b5ae19d37938ac6c700c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 22 Apr 2019 21:38:57 -0400 Subject: [PATCH] Fix for rare case where task won't be listed in system. --- bazarr/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bazarr/main.py b/bazarr/main.py index 63cc36426..3e794de6c 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -1654,6 +1654,8 @@ def system(): if isinstance(job.trigger, CronTrigger): if str(job.trigger.__getstate__()['fields'][0]) == "2100": next_run = 'Never' + else: + next_run = pretty.date(job.next_run_time.replace(tzinfo=None)) else: next_run = pretty.date(job.next_run_time.replace(tzinfo=None))