Skip to content

Commit

Permalink
remove useless parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Oct 18, 2023
1 parent ad9bfff commit 9bcf11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion antareslauncher/use_cases/retrieve/final_zip_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def extract_final_zip(self, study: StudyDTO) -> None:
# All we have to do is rename it by removing the prefix "_finished"
# and the suffix "job_id" that lies before the ".zip".
# If these prefix/suffix prefix change, this code needs to be adapted.
zip_path.rename((zip_path.parent / (zip_path.name[9:zip_path.name.rfind("_")] + ".zip")))
zip_path.rename(zip_path.parent / (zip_path.name[9:zip_path.name.rfind("_")] + ".zip"))

except (OSError, zipfile.BadZipFile) as exc:
# If we cannot extract the final ZIP file, either because the file
Expand Down

0 comments on commit 9bcf11a

Please sign in to comment.