Skip to content

Commit

Permalink
Only installed addons have addon_store
Browse files Browse the repository at this point in the history
  • Loading branch information
mdegat01 committed Dec 11, 2024
1 parent 3580c32 commit 30e4253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervisor/api/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _extract_addon(self, request: web.Request, installed=False) -> AnyAddon:
if installed and not addon.is_installed:
raise APIError(f"Addon {addon_slug} is not installed")

if not installed:
if not installed and addon.is_installed:
return addon.addon_store
return addon

Expand Down

0 comments on commit 30e4253

Please sign in to comment.