Skip to content

Commit 5956e3c

Browse files
fix syntax error
1 parent a5c78a5 commit 5956e3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extractnet/pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def postprocess(self, html, output, meta):
106106
for attribute, value in output.items():
107107
if attribute in ['author', 'date']:
108108
continue
109-
if isinstance(value, str):
109+
if isinstance(value, str) or value is None:
110110
results[attribute] = value
111111
else:
112112
# is list of tuple (string, float) format
@@ -117,6 +117,6 @@ def postprocess(self, html, output, meta):
117117
if self.has_post:
118118
for pipeline in self.postprocess_pipelines:
119119
post_ml_results_ = pipeline(html, results)
120-
results = priority_merge(post_ml_results_, ml_results)
120+
results = priority_merge(post_ml_results_, results)
121121

122122
return results

0 commit comments

Comments
 (0)