mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Handle iconv initialization erorrs
This commit is contained in:
parent
55b61d21d8
commit
6156a2d07c
1 changed files with 1 additions and 1 deletions
|
@ -124,5 +124,5 @@ codecs.register(search_function)
|
|||
# Register iconv_codec lookup function if available
|
||||
try:
|
||||
import iconv_codec
|
||||
except ImportError:
|
||||
except (ImportError, RuntimeError):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue