Skip to content

Commit fa4c1af

Browse files
committed
Fix mypy error
1 parent 99cd852 commit fa4c1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chardet/universaldetector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def close(self) -> FinalResultDict:
329329
# Rename legacy encodings with superset encodings if asked
330330
if self.should_rename_legacy:
331331
charset_name = self.LEGACY_MAP.get(
332-
charset_name.lower(), charset_name
332+
(charset_name or "").lower(), charset_name
333333
)
334334
self.result = {
335335
"encoding": charset_name,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy