Skip to content

Commit bc8c472

Browse files
committed
Allow file errors during creating zips, report them as warnings.
1 parent 5feb6ce commit bc8c472

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

audithub_client/scripts/create_version_via_local_archive.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ def add_folder_to_zip(
5353
continue
5454
current_zip_file_name = str(current_file.relative_to(source_folder))
5555
logger.info("Adding %s", current_zip_file_name)
56-
archive.write(current_file, current_zip_file_name)
56+
try:
57+
archive.write(current_file, current_zip_file_name)
58+
except Exception as ex:
59+
logger.warning(
60+
f"Failed to add file {current_file} to the archive", exc_info=ex
61+
)
5762

5863

5964
source = Group(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "audithub-client"
3-
version = "1.1.4"
3+
version = "1.1.5"
44
description = "A Python client that can access Veridise AuditHub via its REST API, providing CLI access"
55
authors = ["Nikos Chondros <nikos@veridise.com>"]
66
license = "AGPLv3"

0 commit comments

Comments
 (0)