Skip to content

Commit

Permalink
add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ychiucco committed Aug 26, 2024
1 parent 10c6256 commit cf212ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fractal_server/zip_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

def _create_zip(folder: str, output: T) -> T:
if isinstance(output, str) and os.path.exists(output):
raise FileExistsError
raise FileExistsError(f"Zip file '{output}' already exists")

Check notice on line 15 in fractal_server/zip_tools.py

View workflow job for this annotation

GitHub Actions / Coverage

Missing coverage

Missing coverage on line 15
with ZipFile(output, mode="w", compression=ZIP_DEFLATED) as zipfile:
for root, dirs, files in os.walk(folder):
for file in files:
Expand Down

0 comments on commit cf212ba

Please sign in to comment.