diff --git a/notifications_client.py b/notifications_client.py index c93f27e6a..130074d4f 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -329,6 +329,8 @@ def _getSpeakerJsonFromIndex(boxName: str, index: int) -> {}: publishedYear + '/' + publishedMonth + '/' + indexList[index]) + if not os.path.isfile(speakerJsonFilename): + return None return loadJson(speakerJsonFilename) @@ -441,8 +443,6 @@ def _showLocalBox(boxName: str, content += ' ' if speakerJson.get('detectedLinks'): if len(speakerJson['detectedLinks']) > 0: - print("speakerJson['detectedLinks']: " + - str(speakerJson['detectedLinks'])) content = '🔗' + content content = (content[:40]) if len(content) > 40 else content print(indent + str(posStr) + ' | ' + str(name) + ' | ' +