mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-03 04:10:49 +08:00
Update logging levels and add error handling for empty data in PR tools and providers
This commit is contained in:
@ -292,7 +292,7 @@ class PRCodeSuggestions:
|
||||
get_logger().debug(f"PR diff", artifact=self.patches_diff)
|
||||
self.prediction = await self._get_prediction(model, self.patches_diff)
|
||||
else:
|
||||
get_logger().error(f"Error getting PR diff")
|
||||
get_logger().warning(f"Empty PR diff")
|
||||
self.prediction = None
|
||||
|
||||
data = self.prediction
|
||||
|
Reference in New Issue
Block a user