···4040 record.get('reply') is None,
4141 record.get('embed') is None,
4242 record.get('facets') is None,
4343- SDW_REGEX.search(record['text']) is not None,
4343+ SDW_REGEX.search(record.get('text', '')) is not None,
4444 ]
45454646 if not all(conds):