From b725054dcd30930a8be34c685301fcace789d816 Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Tue, 21 Jun 2022 17:36:50 -0400 Subject: [PATCH] Appease the linter --- app/classes/web/panel_handler.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index 7696cb9d..721cf272 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -1515,12 +1515,10 @@ class PanelHandler(BaseHandler): max_backups = bleach.clean(self.get_argument("max_backups", None)) server_obj = self.controller.servers.get_server_obj(server_id) - if ( - not backup_path - == self.helper.wtol_path( - os.path.join(self.helper.backup_path, server_obj.server_uuid) - ) - and backup_path.startswith(self.helper.wtol_path(self.controller.project_root)) + if not backup_path == self.helper.wtol_path( + os.path.join(self.helper.backup_path, server_obj.server_uuid) + ) and backup_path.startswith( + self.helper.wtol_path(self.controller.project_root) ): self.redirect( "/panel/error?error=Nefarious activities detected."