Fix a couple of broken checks
This commit is contained in:
+2
-1
@@ -221,6 +221,7 @@ class NWIndex():
|
|||||||
except Exception:
|
except Exception:
|
||||||
self.indexBroken = True
|
self.indexBroken = True
|
||||||
|
|
||||||
|
logger.debug("Index check complete")
|
||||||
if self.indexBroken:
|
if self.indexBroken:
|
||||||
self.clearIndex()
|
self.clearIndex()
|
||||||
self.theParent.makeAlert(
|
self.theParent.makeAlert(
|
||||||
@@ -593,7 +594,7 @@ class NWIndex():
|
|||||||
return theRefs
|
return theRefs
|
||||||
|
|
||||||
for refTitle in self.refIndex[tHandle]:
|
for refTitle in self.refIndex[tHandle]:
|
||||||
theTags = self.refIndex[tHandle][refTitle].get("tags", None)
|
theTags = self.refIndex[tHandle][refTitle].get("tags", [])
|
||||||
for aTag in theTags:
|
for aTag in theTags:
|
||||||
if len(aTag) == 3 and (sTitle is None or sTitle == refTitle):
|
if len(aTag) == 3 and (sTitle is None or sTitle == refTitle):
|
||||||
theRefs[aTag[1]].append(aTag[2])
|
theRefs[aTag[1]].append(aTag[2])
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ class GuiOutlineDetails(QScrollArea):
|
|||||||
def _formatTags(self, theRefs, theKey):
|
def _formatTags(self, theRefs, theKey):
|
||||||
"""Format the tags as clickable links.
|
"""Format the tags as clickable links.
|
||||||
"""
|
"""
|
||||||
if theKey not in theKey:
|
if theKey not in theRefs:
|
||||||
return ""
|
return ""
|
||||||
refTags = []
|
refTags = []
|
||||||
for tTag in theRefs[theKey]:
|
for tTag in theRefs[theKey]:
|
||||||
|
|||||||
Reference in New Issue
Block a user