Bindu icon indicating copy to clipboard operation
Bindu copied to clipboard

[Bug]: šŸ›Replace Bare `except Exception` Blocks with Specific Exceptions

Open Suvam-paul145 opened this issue 9 months ago • 3 comments

Many modules catch the generic Exception type, which can mask bugs and make debugging harder. Some of these handlers also silently swallow errors.

What needs to happen:

  • Audit each except Exception block and replace it with the most specific exception type (e.g., ConnectionError, ValueError, TimeoutError).
  • Ensure silently caught exceptions at least log the error.
  • Do not change defensive catches that are intentionally broad (e.g., top-level server error handlers).

Relevant files (partial list):

  • bindu/observability/sentry.py
  • bindu/server/storage/helpers/security.py
  • bindu/extensions/did/did_agent_extension.py
  • bindu/auth/hydra/client.py

Suvam-paul145 avatar Feb 26 '26 03:02 Suvam-paul145

@anikait1 and @project admins assign me this issue i want to work in this problem

Suvam-paul145 avatar Feb 26 '26 03:02 Suvam-paul145

@raahulrahl please assign me this issue

Suvam-paul145 avatar Feb 26 '26 15:02 Suvam-paul145

Hi, I’d like to work on this issue. I’ll identify bare exception blocks and replace them with more specific exception handling along with improved logging where appropriate.

4bhishek187 avatar Mar 03 '26 08:03 4bhishek187