Skip to content

fix(skill-scanner): Handle None values in YAML description field#57

Open
ericapisani wants to merge 1 commit intomainfrom
ep/address-issues-found-by-cursor-bot
Open

fix(skill-scanner): Handle None values in YAML description field#57
ericapisani wants to merge 1 commit intomainfrom
ep/address-issues-found-by-cursor-bot

Conversation

@ericapisani
Copy link
Member

The compute_description_body_overlap function could crash with an AttributeError when a skill's YAML description field is None or empty.

Add a null check before accessing the description value.

Also remove unused imports (os, unicodedata) that were flagged in code review.

Fixes getsentry/sentry-python#5485 (comment) and getsentry/sentry-python#5485 (comment)

The compute_description_body_overlap function could crash with an
AttributeError when a skill's YAML description field is None or empty.

Add a null check before accessing the description value.

Also remove unused imports (os, unicodedata) that were flagged in code
review.

Fixes getsentry/sentry-python#5485 (comment)
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments