...
...
highlighter = HlMeths()
highlighter = HlMeths()
for i in range(config['perpage']):
for i in range(config['perpage']):
try:
try:
doc = query.fetchone()
doc = query.fetchone()
# Later Recoll versions return None at EOL instead of
# exception This change restores conformance to PEP 249
# Python Database API Specification
if not doc:
break
except:
except:
break
break
d = {}
d = {}
for f in FIELDS:
for f in FIELDS:
v = getattr(doc, f)
v = getattr(doc, f)