From bbf07386b3b15f63e634d98c4e3dbff0e0c96e8e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 9 Apr 2005 20:06:58 +0000 Subject: [PATCH] Check for TypeError too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_core_ex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wxPython/src/_core_ex.py b/wxPython/src/_core_ex.py index 45f7eeab6d..0e5a51307b 100644 --- a/wxPython/src/_core_ex.py +++ b/wxPython/src/_core_ex.py @@ -47,7 +47,7 @@ if default == 'ascii': try: default = locale.getdefaultlocale()[1] codecs.lookup(default) - except (ValueError, LookupError): + except (ValueError, LookupError, TypeError): default = _sys.getdefaultencoding() del locale del codecs -- 2.45.2