diff --git a/src/antares/craft/model/study.py b/src/antares/craft/model/study.py index e7ba41d3..3aadde8f 100644 --- a/src/antares/craft/model/study.py +++ b/src/antares/craft/model/study.py @@ -105,7 +105,9 @@ def has_valid_extension(path: Path) -> bool: base_url = f"{api_config.get_host()}/api/v1" if not has_valid_extension(study_path): - raise StudyImportError(study_path.name, f"File doesn't have the right extensions (.zip/.7z): {study_path.suffix}") + raise StudyImportError( + study_path.name, f"File doesn't have the right extensions (.zip/.7z): {study_path.suffix}" + ) try: files = {"study": io.BytesIO(study_path.read_bytes())}