mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 21:30:40 +08:00
Get empty content when exception
This commit is contained in:
@ -113,6 +113,7 @@ class GiteaProvider(GitProvider):
|
|||||||
self.file_contents[file_path] = content
|
self.file_contents[file_path] = content
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
self.logger.error(f"Error getting file content for {file_path}: {str(e)}")
|
self.logger.error(f"Error getting file content for {file_path}: {str(e)}")
|
||||||
|
self.file_contents[file_path] = ""
|
||||||
|
|
||||||
def __add_file_diff(self):
|
def __add_file_diff(self):
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user