mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-06 22:00:40 +08:00
Fixed error propagation
This commit is contained in:
@ -757,8 +757,9 @@ class RepoApi(giteapy.RepositoryApi):
|
|||||||
raw_data = response[0].read()
|
raw_data = response[0].read()
|
||||||
return raw_data.decode('utf-8')
|
return raw_data.decode('utf-8')
|
||||||
else:
|
else:
|
||||||
self.logger.error("Unexpected response format")
|
error_msg = f"Unexpected response format received from API: {type(response)}"
|
||||||
return ""
|
self.logger.error(error_msg)
|
||||||
|
return RuntimeError(error_msg)
|
||||||
|
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
self.logger.error(f"Error getting diff: {str(e)}")
|
self.logger.error(f"Error getting diff: {str(e)}")
|
||||||
|
Reference in New Issue
Block a user