From: Robin Dunn Date: Sat, 9 Apr 2005 20:06:58 +0000 (+0000) Subject: Check for TypeError too X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bbf07386b3b15f63e634d98c4e3dbff0e0c96e8e Check for TypeError too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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