paper-dynasty-discord/cogs
Cal Corum 01f6fb50d5
All checks were successful
Build Docker Image / build (pull_request) Successful in 3m17s
fix: prevent crash when Check-In Player packs appear in open-packs menu
Check-In Player packs (auto-opened by daily check-in) could end up orphaned
in inventory if roll_for_cards failed. The open-packs command crashed because:
1. The hyphenated pack type name bypassed the pretty_name logic, producing an
   empty select menu that Discord rejected (400 Bad Request)
2. Even if displayed, selecting it would raise KeyError in the callback since
   "Check-In Player".split("-") doesn't match any known pack type token

Fixes:
- Filter auto-open pack types out of the manual open-packs menu
- Add fallback for hyphenated pack type names in pretty_name logic
- Replace KeyError with graceful user-facing message for unknown pack types
- Change "contact an admin" to "contact Cal" in all user-facing messages

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 08:45:51 -05:00
..
economy_new fix: prevent crash when Check-In Player packs appear in open-packs menu 2026-03-26 08:45:51 -05:00
players_new CLAUDE: Add news-ticker message when gauntlet runs end with 2 losses 2025-11-10 09:17:55 -06:00
admins.py fix: remove db_patch call — no PATCH endpoint for scout_opportunities 2026-03-09 10:55:22 -05:00
economy.py Normalize Player.franchise queries to use Team.sname 2026-01-07 12:01:00 -06:00
gameplay_legacy.py Add responders check to dropdowns 2024-12-27 22:33:25 -06:00
gameplay.py fix: add locked_play context manager to prevent stuck play locks 2026-02-10 21:54:44 -06:00
owner.py New sync method 2024-12-18 09:59:39 -06:00
players.py Fix slash command decorators using wrong prefix command checks 2025-11-17 07:29:08 -06:00