Check that a name exists for the speaker

merge-requests/30/head
Bob Mottram 2021-03-01 22:35:57 +00:00
parent b0330b15be
commit a4f2bfdc06
1 changed files with 2 additions and 0 deletions

View File

@ -2187,6 +2187,8 @@ def _updateSpeaker(baseDir: str, nickname: str, domain: str,
speakerName = \ speakerName = \
getDisplayName(baseDir, postJsonObject['actor'], personCache) getDisplayName(baseDir, postJsonObject['actor'], personCache)
if not speakerName:
return
speakerJson = { speakerJson = {
"name": speakerName, "name": speakerName,
"summary": summary, "summary": summary,