Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Be more defensive when loading mimic config
Browse files Browse the repository at this point in the history
Default config will generally always have a mimic block but in
combination with newer Mycroft variants a more defensive approach is
probably good
  • Loading branch information
forslund committed Apr 28, 2021
1 parent 5d68309 commit d884da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mycroft/tts/mimic_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_mimic_binary():
Returns:
(str) path of mimic executable
"""
config = Configuration.get().get("tts").get("mimic")
config = Configuration.get().get("tts", {}).get("mimic")

bin_ = config.get("path",
os.path.join(MYCROFT_ROOT_PATH, 'mimic', 'bin', 'mimic'))
Expand Down

0 comments on commit d884da5

Please sign in to comment.