dont break loop when one torrent refresh fails

This commit is contained in:
dave 2021-09-18 15:09:35 -07:00
parent b3ed93c669
commit 3ebd654ffc
1 changed files with 7 additions and 3 deletions

View File

@ -3,6 +3,7 @@ import sys
import json
import logging
import cherrypy
import traceback
from time import sleep
from queue import Queue
from threading import Thread
@ -68,9 +69,12 @@ class ClientCache(object):
self.inflight = True
logging.info("performing background tasks...")
self.build_showindex()
self.build_torrentindex()
self.queue_sorts()
try:
self.build_showindex()
self.build_torrentindex()
self.queue_sorts()
except Exception:
logging.error(traceback.format_exc())
self.q.task_done()
self.inflight = False