mirror of https://github.com/python/cpython
Handle iconv initialization erorrs
This commit is contained in:
parent
55b61d21d8
commit
6156a2d07c
|
@ -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…
Reference in New Issue