From f9463da857a6bb8ab9b801fa4fa5764b1372f1d9 Mon Sep 17 00:00:00 2001 From: Augusto Monteiro 'Sparky Date: Thu, 27 Apr 2017 17:32:48 -0700 Subject: [PATCH] #706 - checking network connection --- mycroft/skills/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mycroft/skills/main.py b/mycroft/skills/main.py index bbf751b2e1..cc24f2cb70 100644 --- a/mycroft/skills/main.py +++ b/mycroft/skills/main.py @@ -67,8 +67,9 @@ def install_default_skills(speak=True): if t.splitlines()[-1] == "Installed!" and speak: ws.emit(Message("speak", { 'utterance': "Skills Updated. Mycroft is ready"})) - ws.emit(Message("speak", { - 'utterance': "Check your network connection"})) + elif not connected(): + ws.emit(Message("speak", { + 'utterance': "Check your network connection"})) else: logger.error("Unable to invoke Mycroft Skill Manager: " + MSM_BIN)