Skip to content

Commit 1dc15a6

Browse files
authored
Merge pull request #329 from ligangty/radas-umb
Fix: RADAS: fix a list index out of bounds issue
2 parents c7c0190 + a9bcb5f commit 1dc15a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

charon/pkgs/radas_sign.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ def _process_message(self, msg: Any) -> None:
168168
files = oras_client.pull(
169169
result_reference_url=result_reference_url, sign_result_loc=self.sign_result_loc
170170
)
171-
self.log.info("Number of files pulled: %d, path: %s", len(files), files[0])
171+
if files and len(files) > 0:
172+
self.log.info("Number of files pulled: %d, path: %s", len(files), files[0])
172173
else:
173174
self.log.error("The signing result received with failed status. Errors: %s",
174175
self.sign_result_errors)

0 commit comments

Comments
 (0)