Skip to content

Commit

Permalink
fix(format)
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Leclerc <[email protected]>
  • Loading branch information
sylvlecl committed Nov 22, 2024
1 parent ea491f8 commit 7879614
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/antares_web_installer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
from antares_web_installer.shortcuts import create_shortcut, get_desktop

# List of files and directories to exclude during installation
COMMON_EXCLUDED_FILES = {"config.yaml", "archives", "internal_studies", "studies",
"logs", "matrices", "tmp", "*.zip"}
COMMON_EXCLUDED_FILES = {"config.yaml", "archives", "internal_studies", "studies", "logs", "matrices", "tmp", "*.zip"}
POSIX_EXCLUDED_FILES = COMMON_EXCLUDED_FILES | {"AntaresWebWorker"}
WINDOWS_EXCLUDED_FILES = COMMON_EXCLUDED_FILES | {"AntaresWebWorker.exe"}
EXCLUDED_FILES = POSIX_EXCLUDED_FILES if os.name == "posix" else WINDOWS_EXCLUDED_FILES
Expand Down Expand Up @@ -150,7 +149,8 @@ def install_files(self):
version_info = tuple(map(int, old_version.split(".")))
if version_info < (2, 18):
raise InstallError(
f"Trying to update from version ${old_version}: updating from version older than 2.18 is not supported, please select a new installation directory.")
f"Trying to update from version ${old_version}: updating from version older than 2.18 is not supported, please select a new installation directory."
)
self.update_progress(25)

# update config file
Expand Down

0 comments on commit 7879614

Please sign in to comment.