This commit is contained in:
j 2021-01-31 16:10:50 +01:00
parent 93708b7625
commit 6cf39c2ba6

View file

@ -43,9 +43,9 @@ class Tasks(Thread):
import item.scan
from item.models import sync_metadata, get_preview, get_cover
from user.models import (
export_list, update_user_peering,
add_local_info, remove_local_info,
upload
export_list, update_user_peering,
add_local_info, remove_local_info,
upload
)
shutdown = False
while not shutdown:
@ -98,6 +98,7 @@ class Tasks(Thread):
def load_tasks(self):
if os.path.exists(self._taskspath):
logger.debug('loading tasks')
try:
with open(self._taskspath) as f:
tasks = json.load(f)