summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/main.py b/client/main.py
index 75ee9f6..0b29c75 100644
--- a/client/main.py
+++ b/client/main.py
@@ -23,7 +23,10 @@ if __name__ == "__main__":
mic = Mic("languagemodel.lm", "dictionary.dic",
"languagemodel_persona.lm", "dictionary_persona.dic")
- mic.say("How can I be of service, %s?" % (profile["first_name"]))
+ addendum = ""
+ if 'first_name' in profile:
+ addendum = ", %s" % profile["first_name"]
+ mic.say("How can I be of service%s?" % addendum)
conversation = Conversation("JASPER", mic, profile)