Fix Python tools category crash in multi-select
Fixed AttributeError when selecting Python tools individually. Problem: - config.PYTHON_TOOLS is defined as a list, not a dict - Code was calling .keys() on a list object - Error: AttributeError: 'list' object has no attribute 'keys' Solution: - Removed .keys() call for Python tools since it's already a list - Python tools now work correctly in multi-select menu Note: Scripts category intentionally only allows "Install All" since scripts are downloaded as a collection set. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a210803453
commit
5bc00b9643
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ def install_category_selected(category_id: str, distro_type: str, logger):
|
||||||
elif category_id == 'opt':
|
elif category_id == 'opt':
|
||||||
tools_list = list(config.get_opt_tools_for_distro(distro_type).keys())
|
tools_list = list(config.get_opt_tools_for_distro(distro_type).keys())
|
||||||
elif category_id == 'python':
|
elif category_id == 'python':
|
||||||
tools_list = list(config.PYTHON_TOOLS.keys())
|
tools_list = config.PYTHON_TOOLS # Already a list, not a dict
|
||||||
elif category_id == 'docker':
|
elif category_id == 'docker':
|
||||||
tools_list = list(config.DOCKER_TOOLS.keys())
|
tools_list = list(config.DOCKER_TOOLS.keys())
|
||||||
elif category_id == 'scripts':
|
elif category_id == 'scripts':
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue