mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 14:59:02 +00:00
Temporary fix for decoding errors
This commit is contained in:
@@ -164,7 +164,7 @@ class HttpDirectory(RemoteDirectory):
|
|||||||
parser = HTMLAnchorParser()
|
parser = HTMLAnchorParser()
|
||||||
|
|
||||||
for chunk in body:
|
for chunk in body:
|
||||||
parser.feed(chunk.decode("utf-8"))
|
parser.feed(chunk.decode("utf-8", errors="ignore"))
|
||||||
for anchor in parser.anchors:
|
for anchor in parser.anchors:
|
||||||
yield anchor
|
yield anchor
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user