mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
Add null check for 'suggestion' in publish_code_suggestions method in gitlab_provider.py
This commit is contained in:
parent
3456c8e039
commit
4a71ec90c6
1 changed files with 1 additions and 1 deletions
|
|
@ -327,7 +327,7 @@ class GitLabProvider(GitProvider):
|
|||
def publish_code_suggestions(self, code_suggestions: list) -> bool:
|
||||
for suggestion in code_suggestions:
|
||||
try:
|
||||
if 'original_suggestion' in suggestion:
|
||||
if suggestion and 'original_suggestion' in suggestion:
|
||||
original_suggestion = suggestion['original_suggestion']
|
||||
else:
|
||||
original_suggestion = suggestion
|
||||
|
|
|
|||
Loading…
Reference in a new issue