From 41068df7e4355df48fd71aebd76237a725ace91d Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 16 Sep 2014 20:13:22 +0200 Subject: Style fix for salutation in jasper.py --- jasper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jasper.py b/jasper.py index 4e00fa2..346617f 100755 --- a/jasper.py +++ b/jasper.py @@ -66,7 +66,10 @@ class Jasper(object): self.mic = Mic(speak.newSpeaker(), stt.PocketSphinxSTT(), stt.newSTTEngine(stt_engine_type, api_key=api_key)) def run(self): - salutation = "How can I be of service, %s?" % self.config["first_name"] if 'first_name' in self.config else "How can I be of service?" + if 'first_name' in self.config: + salutation = "How can I be of service, %s?" % self.config["first_name"] + else: + salutation = "How can I be of service?" self.mic.say(salutation) conversation = Conversation("JASPER", self.mic, self.config) -- cgit v1.3.1