From a9bcb5f05dbbb647425317552d74b6c3c8f087e3 Mon Sep 17 00:00:00 2001 From: Gang Li Date: Thu, 26 Jun 2025 18:48:32 +0800 Subject: [PATCH] Fix: RADAS: fix a list index out of bounds issue --- charon/pkgs/radas_sign.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charon/pkgs/radas_sign.py b/charon/pkgs/radas_sign.py index 5f4e064e..fcdf6e49 100644 --- a/charon/pkgs/radas_sign.py +++ b/charon/pkgs/radas_sign.py @@ -168,7 +168,8 @@ def _process_message(self, msg: Any) -> None: files = oras_client.pull( result_reference_url=result_reference_url, sign_result_loc=self.sign_result_loc ) - self.log.info("Number of files pulled: %d, path: %s", len(files), files[0]) + if files and len(files) > 0: + self.log.info("Number of files pulled: %d, path: %s", len(files), files[0]) else: self.log.error("The signing result received with failed status. Errors: %s", self.sign_result_errors)