mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 19:05:18 +00:00
Fixed error propagation
This commit is contained in:
parent
0f893bc492
commit
162cc9d833
1 changed files with 3 additions and 2 deletions
|
|
@ -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)}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue