From c940d9d8a467eb0d9bbf05bbe19a70acf4c965e8 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sun, 25 Apr 2021 18:20:31 +0200 Subject: [PATCH] Remove duplicate error message in index class --- nw/core/index.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nw/core/index.py b/nw/core/index.py index 986e4f93..d22f3000 100644 --- a/nw/core/index.py +++ b/nw/core/index.py @@ -32,7 +32,7 @@ import os from time import time -from nw.enum import nwItemType, nwItemClass, nwItemLayout, nwAlert +from nw.enum import nwItemType, nwItemClass, nwItemLayout from nw.common import isHandle, isTitleTag, isItemClass, isItemLayout from nw.constants import nwFiles, nwKeyWords, nwUnicode from nw.core.document import NWDoc @@ -157,10 +157,6 @@ class NWIndex(): logger.error("Failed to load index file") nw.logException() self.indexBroken = True - self.theParent.makeAlert( - "Could not load cached index file. Rebuilding index.", - nwAlert.WARN - ) return False self._tagIndex = theData.get("tagIndex", {})