1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Spelling and grammar fixes (#499)

This commit is contained in:
Ville Skyttä
2018-06-08 22:32:06 +03:00
committed by Pascal Vizeli
parent 41943ba61a
commit e2725f8033
20 changed files with 36 additions and 36 deletions

View File

@@ -42,10 +42,10 @@ class APIAddons(CoreSysAttributes):
"""Handle rest api for addons functions."""
def _extract_addon(self, request, check_installed=True):
"""Return addon and if not exists trow a exception."""
"""Return addon, throw an exception it it doesn't exist."""
addon = self.sys_addons.get(request.match_info.get('addon'))
if not addon:
raise RuntimeError("Addon not exists")
raise RuntimeError("Addon does not exist")
if check_installed and not addon.is_installed:
raise RuntimeError("Addon is not installed")