summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bazarr/app/scheduler.py5
1 files changed, 4 insertions, 1 deletions
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():