Skip to content

Fix expert_count() exception handling (#26) - #32

Open
Karthik9849309055 wants to merge 1 commit into
CyberSunil:mainfrom
Karthik9849309055:fix-expert-count-exceptions
Open

Karthik9849309055 wants to merge 1 commit into
CyberSunil:mainfrom
Karthik9849309055:fix-expert-count-exceptions

Conversation

@Karthik9849309055

Copy link
Copy Markdown

Fixes #26.

expert_count() now catches specific errors and logs them, instead of silently returning 0. This ensures the Expert Vault meter remains usable while diagnosing missing or corrupt vault files.

(Note: Left except (InvalidToken, Exception) at line 69 alone to keep the PR scope focused, but it shares the same anti-pattern.)

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.

expert_count() swallows all exceptions

1 participant