Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
Fix error in gitlab when doing describe command:
2025-07-22 19:54:48.831 | INFO | pr_agent.tools.pr_description:extend_uncovered_files:375 - Adding 1 unprocessed extra files to table prediction 2025-07-22 19:54:48.838 | WARNING | pr_agent.tools.pr_description:_prepare_file_labels:645 - Empty changes summary in file label dict, skipping file 2025-07-22 19:54:48.839 | ERROR | pr_agent.tools.pr_description:run:197 - Error generating PR description https://gitlab.com/hispydevelopteam/his_internacion/-/merge_requests/452: 'dict' object has no attribute 'rstrip'
PR Type
Bug fix
Description
Fix AttributeError when processing non-string values in PR description
Add type checking for
rstrip()
method availabilityHandle mixed data types in list processing
Diagram Walkthrough
File Walkthrough
pr_description.py
Fix rstrip AttributeError for mixed data types
pr_agent/tools/pr_description.py
hasattr(v, 'rstrip')
check before callingrstrip()
methodstr(v)
before processing