From 8ec374a4bf5629d425132e08a3f5d5acb8790573 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 14 Mar 2021 10:45:33 +0000 Subject: [PATCH] Return if no posts --- notifications_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/notifications_client.py b/notifications_client.py index d225a7c13..dca8e95dd 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -363,6 +363,7 @@ def _showLocalBox(boxName: str, if not index: sayStr = 'You have no ' + boxName + ' posts yet.' _sayCommand(sayStr, sayStr, screenreader, systemLanguage, espeak) + return maxPostIndex = len(index) index.sort(reverse=True) ctr = 0