space
This commit is contained in:
parent
93708b7625
commit
6cf39c2ba6
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue