Skip to content

Commit

Permalink
Fix 500 when addon has no icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean28518 committed Mar 26, 2024
1 parent 9fb25d4 commit 52296a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lac/app_dashboard/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_card_for(title, url, icon_path, description):
def add_all_addon_cards_to_card_data():
addons = unix.get_all_addon_modules()
for addon in addons:
card_data.append({"order": 10, "title": addon["name"], "url": addon["url"], "icon_path": f"/static/lac/icons/{addon['id']}.{addon['icon_file_format']}", "description": addon["description"], "keywords": [addon["url"], addon["id"]]})
card_data.append({"order": 10, "title": addon["name"], "url": addon["url"], "icon_path": f"/static/lac/icons/{addon['id']}.{addon.get('icon_file_format', '')}", "description": addon["description"], "keywords": [addon["url"], addon["id"]]})

# Only adds predefined system cards to the database not addon cards
def ensure_all_cards_exist_in_database():
Expand Down

0 comments on commit 52296a2

Please sign in to comment.