From 8268b1b2c88d642eacc694ef5d918b64496eaca1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 15 Mar 2021 11:38:34 +0000 Subject: [PATCH] Don't assume that the file exists --- notifications_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/notifications_client.py b/notifications_client.py index b6e5107bb..5cd4d02fb 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -381,6 +381,8 @@ def _showLocalBox(boxName: str, os.path.join(msgDir, publishedYear + '/' + publishedMonth + '/' + index[pos]) + if not os.path.isfile(speakerJsonFilename): + continue speakerJson = loadJson(speakerJsonFilename) if not speakerJson.get('published'): continue