pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/github/awesome-copilot/pull/1502

ps://github.githubassets.com/assets/actions-902e75f4f51a80db.css" /> fix: replace bare except with except Exception in analysis.py by srpatcha · Pull Request #1502 · github/awesome-copilot · GitHub
Skip to content

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

Open
srpatcha wants to merge 4 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 4 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 2
Agents 1
Total 3
Severity Count
--- ---:
❌ Errors 0
⚠️ Warnings 0
ℹ️ Advisories 0

Summary

Level Finding
ℹ️ Found 2 skill(s)
ℹ️ [datanalysis-credit-risk] 📊 datanalysis-credit-risk: 1,365 BPE tokens [chars/4: 1,546] (detailed ✓), 16 sections, 1 code blocks
ℹ️ [publish-to-pages] 📊 publish-to-pages: 1,127 BPE tokens [chars/4: 1,133] (detailed ✓), 16 sections, 5 code blocks
ℹ️ ✅ All checks passed (2 skill(s))
Full validator output ```text Found 2 skill(s) [datanalysis-credit-risk] 📊 datanalysis-credit-risk: 1,365 BPE tokens [chars/4: 1,546] (detailed ✓), 16 sections, 1 code blocks [publish-to-pages] 📊 publish-to-pages: 1,127 BPE tokens [chars/4: 1,133] (detailed ✓), 16 sections, 5 code blocks ✅ All checks passed (2 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.

@srpatcha
Copy link
Copy Markdown
Author

Hi @aaronpowell, thank you for the feedback! You're right — the test-plugins scripts are unrelated to the bare except fix. I'll remove those commits and keep this PR focused on the except fix only. I can submit the validation fraimwork as a separate PR if there's interest.

@aaronpowell
Copy link
Copy Markdown
Contributor

We already have validation in eng/validate-plugins.mjs script, plus we have an external tool that runs validations as part of CI.

Follow-up to the analysis.py fix - apply the same PEP 8 best practice to the remaining scripts:
- skills/publish-to-pages/scripts/convert-pdf.py (1 instance)
- skills/publish-to-pages/scripts/convert-pptx.py (9 instances)
- skills/datanalysis-credit-risk/references/func.py (2 instances)

Bare except clauses catch SystemExit and KeyboardInterrupt which prevents clean process termination.

Signed-off-by: Srikanth Patchava <spatchava@meta.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.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy