From 72cef4e8c05b82367fbfeda922134f60eedf40be Mon Sep 17 00:00:00 2001 From: Jack Harper Date: Tue, 2 Jun 2026 10:22:02 +0100 Subject: [PATCH] Remove duplicate code Removed backup validation for specific paths in backup_tasks.py. --- .../ibex_install_utils/tasks/backup_tasks.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/installation_and_upgrade/ibex_install_utils/tasks/backup_tasks.py b/installation_and_upgrade/ibex_install_utils/tasks/backup_tasks.py index 9feac47..ead8322 100644 --- a/installation_and_upgrade/ibex_install_utils/tasks/backup_tasks.py +++ b/installation_and_upgrade/ibex_install_utils/tasks/backup_tasks.py @@ -144,16 +144,6 @@ def backup_checker(self) -> None: "Please backup manually." ) - for path in (SETTINGS_DIR, AUTOSAVE, EPICS_UTILS_PATH): - # Either the folder or the corresponding .zip file should exist - if not os.path.exists(self._path_to_backup(path)) and not os.path.exists( - self._path_to_backup(path) + ".zip" - ): - self.prompt.prompt_and_raise_if_not_yes( - f"Error found with backup. '{path}' did not back up properly. " - "Please backup manually." - ) - @task("Removing old version of IBEX") def remove_old_ibex(self) -> None: """