Update logging levels and add error handling for empty data in PR tools and providers

This commit is contained in:
mrT23
2024-08-14 08:02:34 +03:00
parent 8adfca5b3c
commit 8414e109c5
5 changed files with 7 additions and 5 deletions

View File

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