diff --git a/msm/mycroft_skills_manager.py b/msm/mycroft_skills_manager.py
index <HASH>..<HASH> 100644
--- a/msm/mycroft_skills_manager.py
+++ b/msm/mycroft_skills_manager.py
@@ -131,8 +131,11 @@ class MycroftSkillsManager(object):
         local_skill_dict = {s.name: s for s in local_skills}
 
         for s in skills_data['skills']:
-            skill_info = local_skill_dict[s['name']]
-            s['skill_gid'] = skill_info.skill_gid
+            if s['name'] in local_skill_dict:
+                skill_info = local_skill_dict[s['name']]
+                s['skill_gid'] = skill_info.skill_gid
+            else:
+                s['skill_gid'] = ''
         skills_data['version'] = 2
         return skills_data
Fix upgrade to version 2 when skill isn't local

If a failed skill install was upgraded the upgrade would error. This
handles that case.