Skip to content

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

Merged
ericapisani merged 1 commit intomainfrom
ep/address-issues-found-by-cursor-bot
Feb 20, 2026
Merged

fix(skill-scanner): Handle None values in YAML description field#57
ericapisani merged 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>
@ericapisani ericapisani merged commit 5400740 into main Feb 20, 2026
10 checks passed
@ericapisani ericapisani deleted the ep/address-issues-found-by-cursor-bot branch February 20, 2026 13:02
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