changed logic that got installed skills to handle no installed skills returned, which could happen if a user has a no devices

pull/6/head
Chris Veilleux 2018-10-05 17:59:08 -05:00
parent a9a9d18c67
commit 55987b6890
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class SkillSummaryEndpoint(SeleneEndpoint):
self._check_for_service_errors(user_service_response)
response_skills = user_service_response.json()
for skill in response_skills['skills']:
for skill in response_skills.get('skills', []):
self.installed_skills.append(skill['skill']['name'])
def _build_response_data(self):