]> granicus.if.org Git - python/commitdiff
Handle iconv initialization erorrs
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 28 Feb 2003 20:00:42 +0000 (20:00 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 28 Feb 2003 20:00:42 +0000 (20:00 +0000)
Lib/encodings/__init__.py

index 5e4167b28caa52046656c37528935a60e5518f58..e312fb80eb9cb9f6494a2890e48b5e3bd85c3f1a 100644 (file)
@@ -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