fix: add logging to silent error swallowing in badge lookup #150
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
ai-working
bug
enhancement
feature
in-queue
performance
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-discord#150
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
get_card_embeds()badge logic athelpers/main.py:117-124uses bareexcept Exception: pass. All errors including API timeouts, malformed responses, and auth failures are completely invisible — no logging, no metrics.While the silent catch is intentional (don't break card displays for badge failures), it makes debugging impossible.
Fix
Change
except Exception: passtoexcept Exception: logger.debug(...)so badge lookup failures are traceable in logs without affecting player experience.Impact
Trivial fix. Good debugging hygiene.