From b0330b15bef0a508173f048c19c7dfd3e06b602d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 1 Mar 2021 22:33:47 +0000 Subject: [PATCH] Check that a name exists --- epicyon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epicyon.py b/epicyon.py index 8f8ba80d9..de3ffedc0 100644 --- a/epicyon.py +++ b/epicyon.py @@ -1940,7 +1940,7 @@ if args.speaker: httpPrefix, True, __version__) if speakerJson: - if speakerJson['say'] != prevSay: + if speakerJson['say'] != prevSay and speakerJson.get('name'): print(html.unescape(speakerJson['name']) + ': ' + html.unescape(speakerJson['say']) + '\n') pitch = getSpeakerPitch(speakerJson['name'])