dont break loop when one torrent refresh fails
This commit is contained in:
parent
b3ed93c669
commit
3ebd654ffc
|
@ -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...")
|
||||
|
||||
try:
|
||||
self.build_showindex()
|
||||
self.build_torrentindex()
|
||||
self.queue_sorts()
|
||||
except Exception:
|
||||
logging.error(traceback.format_exc())
|
||||
|
||||
self.q.task_done()
|
||||
self.inflight = False
|
||||
|
|
Loading…
Reference in New Issue