We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 701b460 commit c571382Copy full SHA for c571382
1 file changed
WDoc/utils/loaders.py
@@ -545,12 +545,12 @@ def load_one_doc(
545
)
546
assert docs[i].metadata["all_hash"], f"Empty all_hash for document: {docs[i]}"
547
548
+ total_reading_length = None
549
try:
550
total_reading_length = sum([float(d.metadata["doc_reading_time"]) for d in docs])
551
except Exception:
- total_reading_length = None
552
pass
553
- if total_reding_length is not None:
+ if total_reading_length is not None:
554
assert total_reading_length > 0.1, (
555
f"Failing doc: total reading length is {total_reading_length:.3f}"
556
"min which is suspiciously low. Filetype {filetype} with kwargs "
0 commit comments