We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 52f767c + 0442358 commit 615ce80Copy full SHA for 615ce80
1 file changed
readability/encoding.py
@@ -46,7 +46,7 @@ def get_encoding(page):
46
page.decode(encoding)
47
# It worked!
48
return encoding
49
- except UnicodeDecodeError:
+ except (UnicodeDecodeError, LookupError):
50
pass
51
52
# Fallback to chardet if declared encodings fail
0 commit comments