From 17312af481abc38474263d5e15cadb0d6804aca3 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Tue, 28 Nov 2023 20:11:01 -0500 Subject: [PATCH] no log: added try/catch --- bazarr/app/scheduler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bazarr/app/scheduler.py b/bazarr/app/scheduler.py index ca1684673..81d368fe5 100644 --- a/bazarr/app/scheduler.py +++ b/bazarr/app/scheduler.py @@ -285,7 +285,10 @@ class Scheduler: coalesce=True, misfire_grace_time=15, id='upgrade_subtitles', name='Upgrade previously downloaded Subtitles', replace_existing=True) else: - self.aps_scheduler.remove_job(job_id='upgrade_subtitles') + try: + self.aps_scheduler.remove_job(job_id='upgrade_subtitles') + except JobLookupError: + pass def __randomize_interval_task(self): for job in self.aps_scheduler.get_jobs():