Check that a name exists

merge-requests/30/head
Bob Mottram 2021-03-01 22:33:47 +00:00
parent 40afe12e1b
commit b0330b15be
1 changed files with 1 additions and 1 deletions

View File

@ -1940,7 +1940,7 @@ if args.speaker:
httpPrefix, httpPrefix,
True, __version__) True, __version__)
if speakerJson: if speakerJson:
if speakerJson['say'] != prevSay: if speakerJson['say'] != prevSay and speakerJson.get('name'):
print(html.unescape(speakerJson['name']) + ': ' + print(html.unescape(speakerJson['name']) + ': ' +
html.unescape(speakerJson['say']) + '\n') html.unescape(speakerJson['say']) + '\n')
pitch = getSpeakerPitch(speakerJson['name']) pitch = getSpeakerPitch(speakerJson['name'])