Skip to content

Commit acb83cc

Browse files
committed
Fix: RADAS: fix a list index out of bounds issue
1 parent c7c0190 commit acb83cc

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 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)