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

@@ -10,10 +10,10 @@ class APIServices(CoreSysAttributes):
"""Handle rest api for services functions."""
def _extract_service(self, request):
"""Return service and if not exists trow a exception."""
"""Return service, throw an exception if it doesn't exist."""
service = self.sys_services.get(request.match_info.get('service'))
if not service:
raise RuntimeError("Service not exists")
raise RuntimeError("Service does not exist")
return service