Bindu
Bindu copied to clipboard
[Bug]: šReplace Bare `except Exception` Blocks with Specific Exceptions
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 Exceptionblock 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.pybindu/server/storage/helpers/security.pybindu/extensions/did/did_agent_extension.pybindu/auth/hydra/client.py
@anikait1 and @project admins assign me this issue i want to work in this problem
@raahulrahl please assign me this issue
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.