doc2vec 2.15.0 → 2.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1062,7 +1062,7 @@ class ContentProcessor {
1062
1062
  classesToPreserve: ['article-content', 'original-h1'],
1063
1063
  });
1064
1064
  const article = reader.parse();
1065
- if (!article) {
1065
+ if (!article || article.content == null) {
1066
1066
  logger.warn(`Failed to parse article content with Readability for ${url}`);
1067
1067
  return { content: null, links, finalUrl, etag };
1068
1068
  }