Skip to content

fix: replace bare except with except Exception in analysis.py#1502

Open
srpatcha wants to merge 3 commits intogithub:stagedfrom
srpatcha:fix/bare-except-analysis-v2
Open

fix: replace bare except with except Exception in analysis.py#1502
srpatcha wants to merge 3 commits intogithub:stagedfrom
srpatcha:fix/bare-except-analysis-v2

Conversation

@srpatcha
Copy link
Copy Markdown

Summary

Replaces bare \�xcept:\ with \�xcept Exception:\ in \skills/publish-to-pages/scripts/convert-pdf.py\ analysis function to avoid catching \SystemExit\ and \KeyboardInterrupt.

Re-targeted to \staged\ branch as requested in #1500.

Signed-off-by: Srikanth Patchava spatchava@meta.com

Bare except clauses catch SystemExit and KeyboardInterrupt which
prevents clean process termination. Use except Exception per PEP 8.
@srpatcha srpatcha requested a review from aaronpowell as a code owner April 25, 2026 08:03
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 25, 2026

🔍 Skill Validator Results

✅ All checks passed

Scope Checked
Skills 1
Agents 1
Total 2
Severity Count
--- ---:
❌ Errors 0
⚠️ Warnings 0
ℹ️ Advisories 0

Summary

Level Finding
ℹ️ Found 1 skill(s)
ℹ️ [datanalysis-credit-risk] 📊 datanalysis-credit-risk: 1,365 BPE tokens [chars/4: 1,546] (detailed ✓), 16 sections, 1 code blocks
ℹ️ ✅ All checks passed (1 skill(s))
Full validator output ```text Found 1 skill(s) [datanalysis-credit-risk] 📊 datanalysis-credit-risk: 1,365 BPE tokens [chars/4: 1,546] (detailed ✓), 16 sections, 1 code blocks ✅ All checks passed (1 skill(s)) ```

Add comprehensive plugin validation tool with:
- Schema validation for plugin definitions
- Dependency checking across known plugins
- Compatibility matrix verification
- Both JSON and human-readable report generation
- CLI interface with configurable options
- Minimal YAML parser for plugin files

Signed-off-by: Srikanth Patchava <spatchava@meta.com>
Test suite covering YAML parsing, semver validation,
URL validation, license checking, and schema validation.

Signed-off-by: Srikanth Patchava <spatchava@meta.com>
Copy link
Copy Markdown
Contributor

@aaronpowell aaronpowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test-plugins scripts are unrelated to the PR description, and we already have scripts in the repo related to validating plugins.

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.

2 participants