Skip to content

Tighten 17 bare except Exception sites with typed handling #93

Description

@usmanimamu17-create

Problem

17 sites catch all exceptions including KeyboardInterrupt.

Why

Typed handling exposes bugs; chained logs help incidents.

Outcome

All sites use ApexException or specific subclasses; logger.exception for context.

Acceptance

  • grep "except Exception" returns 0 without noqa

Files

  • app/tasks/webhook_tasks.py
  • app/tasks/sla_tasks.py
  • app/api/v1/endpoints/jobs.py
  • app/api/v1/endpoints/outages.py
  • app/services/sla_service.py
  • app/main.py
  • app/core/lock.py
  • app/middleware/correlation.py

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programarea/error-handlingException hierarchy, error envelopes, idempotency, retry policyarea/refactorCode-quality, type-hints, dead-code removal, internal API cleanuppriority/highImportant; address in current quarter

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions