paper-dynasty-discord/discord_ui
Cal Corum f7f37c9d95 CLAUDE: Handle Team Choice packs with no team/cardset assigned
Users were receiving "This interaction failed" when trying to open Team
Choice packs that had neither pack_team nor pack_cardset assigned in the
database.

The previous fix only handled packs WITH cardset but WITHOUT team. This
adds handling for completely unconfigured Team Choice packs.

Now shows a helpful error message: "This Team Choice pack needs to be
assigned a team and cardset. Please contact an admin to configure this pack."

This prevents the KeyError exception that was being thrown at
helpers.py:1692 when open_choice_pack() received a pack with pack_team=None.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 15:09:26 -06:00
..
__init__.py Catchup commit 2025-07-22 09:22:19 -05:00
confirmations.py Catchup commit 2025-07-22 09:22:19 -05:00
dropdowns.py Catchup commit 2025-07-22 09:22:19 -05:00
pagination.py Catchup commit 2025-07-22 09:22:19 -05:00
selectors.py CLAUDE: Handle Team Choice packs with no team/cardset assigned 2025-11-10 15:09:26 -06:00