Appease sonar

This commit is contained in:
amcmanu3 2023-09-04 21:21:59 -04:00
parent 9b7d0d83b5
commit 514bf8453f
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
import logging import logging
import json import json
import os import os
from apscheduler.jobstores.base import JobLookupError
from jsonschema import validate from jsonschema import validate
from jsonschema.exceptions import ValidationError from jsonschema.exceptions import ValidationError
from app.classes.models.server_permissions import EnumPermissionsServer from app.classes.models.server_permissions import EnumPermissionsServer
@ -192,8 +193,8 @@ class ApiServersServerBackupsBackupIndexHandler(BaseApiHandler):
# remove old server's tasks # remove old server's tasks
try: try:
self.tasks_manager.remove_all_server_tasks(server_id) self.tasks_manager.remove_all_server_tasks(server_id)
except: except JobLookupError as e:
logger.info("No active tasks found for server") logger.info("No active tasks found for server: {e}")
self.controller.remove_server(server_id, True) self.controller.remove_server(server_id, True)
except Exception: except Exception:
return self.finish_json( return self.finish_json(

View File

@ -130,7 +130,7 @@ function process_tree_response(response) {
} }
function getToggleMain(event) { function getToggleMain(event) {
path = event.target.parentElement.getAttribute('data-path'); const path = event.target.parentElement.getAttribute('data-path');
document.getElementById("files-tree").classList.toggle("d-block"); document.getElementById("files-tree").classList.toggle("d-block");
document.getElementById(path + "span").classList.toggle("tree-caret-down"); document.getElementById(path + "span").classList.toggle("tree-caret-down");
document.getElementById(path + "span").classList.toggle("tree-caret"); document.getElementById(path + "span").classList.toggle("tree-caret");