From a975b323760e4d6ddf41e3cc5c0528d037ea342f Mon Sep 17 00:00:00 2001 From: Pinyoo Thotaboot Date: Mon, 26 May 2025 11:26:16 +0700 Subject: [PATCH] Get empty content when exception --- pr_agent/git_providers/gitea_provider.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pr_agent/git_providers/gitea_provider.py b/pr_agent/git_providers/gitea_provider.py index 4ac2e63b..01b2fca7 100644 --- a/pr_agent/git_providers/gitea_provider.py +++ b/pr_agent/git_providers/gitea_provider.py @@ -113,6 +113,7 @@ class GiteaProvider(GitProvider): self.file_contents[file_path] = content except ApiException as e: self.logger.error(f"Error getting file content for {file_path}: {str(e)}") + self.file_contents[file_path] = "" def __add_file_diff(self): try: