Handle none returned

merge-requests/30/head
Bob Mottram 2021-03-15 15:23:19 +00:00
parent 2ce5285b85
commit 0cf4ab99f4
1 changed files with 2 additions and 0 deletions

View File

@ -1157,6 +1157,8 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
currIndex = currSentIndex
speakerJson = \
_getSpeakerJsonFromIndex(currTimeline, currIndex)
if not speakerJson:
speakerJson = {}
if speakerJson.get('detectedLinks'):
if ' ' in keyPress:
index = keyPress.split(' ')[1]