modified:   mycroft/skills/core.py
Fixed typo
@@ -108,15 +108,16 @@ def load_skill(skill_descriptor, emitter):
skill.bind(emitter)
skill.load_data_files(dirname(skill_descriptor['info'][1]))
skill.initialize()
- logger.info("Lodaded " + skill_descriptor["name"])
+ logger.info("Loaded " + skill_descriptor["name"])
return skill
else:
logger.warn(
"Module %s does not appear to be skill" % (
skill_descriptor["name"]))
- except:
+ except Exception as e:
logger.error(
- "Failed to load skill: " + skill_descriptor["name"], exc_info=True)
+ "Failed to load skill: " +
+ skill_descriptor["name"], exc_info=True + " " + e)
return None
@@ -243,14 +244,14 @@ class MycroftSkill(object):
def receive_handler(message):
try:
handler(message)
- except:
+ except Exception as e:
# TODO: Localize
self.speak(
"An error occurred while processing a request in " +
self.name)
logger.error(
"An error occurred while processing a request in " +
- self.name, exc_info=True)
+ self.name, exc_info=True + " " + e)
self.emitter.on(intent_parser.name, receive_handler)
