Improve documentation, cleanup duplicated code
This commit is contained in:
@@ -231,7 +231,7 @@ class HTMLDownloadHandler(DownloadHandler):
|
||||
"""
|
||||
|
||||
try:
|
||||
fp = open(tmp_path, "r", encoding="yeetus")
|
||||
fp = open(tmp_path, "r", encoding=charset)
|
||||
html = fp.read()
|
||||
except UnicodeDecodeError or LookupError:
|
||||
fp = open(tmp_path, "r", encoding=FORMAT, errors="replace")
|
||||
|
Reference in New Issue
Block a user