Skip to content

Updated blind exceptions - #28

Merged
jdw-creare merged 7 commits into
developfrom
feature/lint_blind_except
May 14, 2026
Merged

jdw-creare merged 7 commits into
developfrom
feature/lint_blind_except

Conversation

@jdw-creare

@jdw-creare jdw-creare commented May 9, 2026 •

Copy link
Copy Markdown
Contributor
  • Added linter plugin for blind exceptions
  • Replaced Exception with more specific instances where possible
  • Added # noqa: B902 in a couple places where we truly want to catch all exceptions including syntax errors
  • Added further test coverage at SonarQube's prompting, via Claude Code

jdw-creare and others added 6 commits May 9, 2026 20:46
Covers all branches of the wrapper: method guard (405), query-string
length/UTF-8 validation (400), character allowlist filtering, format
param lowercasing, WCSException → 400, and generic Exception → 500.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jdw-creare
jdw-creare requested a review from scranford1 May 11, 2026 15:45

@scranford1 scranford1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks John, this looks good to me. Added one comment about settings exception.

Comment thread ogc/wcs_response_1_0_0.py Outdated
@sonarqubecloud

Copy link
Copy Markdown

@jdw-creare
jdw-creare merged commit 7acf79c into develop May 14, 2026
5 checks passed
@jdw-creare
jdw-creare deleted the feature/lint_blind_except branch May 14, 2026 20:53
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