Skip to content

Commit

Permalink
feat(api): correcting minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdiwahada committed Feb 4, 2025
1 parent 5f79641 commit 6e68243
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/antares/craft/model/study.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())}
Expand Down

0 comments on commit 6e68243

Please sign in to comment.