mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-25 00:24:45 +00:00
Fix MS Word parser, hopefully
MS Word files are binary data, and get_temp_filename() will write them to disk using open(..., 'wb'), so we want to pass bytes in there, not Unicode. See #323.
This commit is contained in:
parent
bbb90eba81
commit
fa32a89d6b
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class WordParser(_ParserPlugin):
|
|||
|
||||
def check(self, url_data):
|
||||
"""Parse Word data."""
|
||||
content = url_data.get_content()
|
||||
content = url_data.get_raw_content()
|
||||
filename = get_temp_filename(content)
|
||||
# open word file and parse hyperlinks
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue