Skip to content

Commit 499f994

Browse files
Note BS4 bug report
1 parent bdc9983 commit 499f994

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cardinal_pythonlib/extract_text.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,7 @@ def convert_html_to_text(
11411141
Converts HTML to text.
11421142
"""
11431143

1144+
# https://bugs.launchpad.net/beautifulsoup/+bug/2110492
11441145
# beautifulsoup4==4.13.4 returns "b''" for an empty bytes array
11451146
# So we just workaround this here:
11461147
if bytes is not None and len(blob) == 0:

0 commit comments

Comments
 (0)