X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd898dd8bd6edd95323cb4fa54564ed2dcdfdd65..dc9abdf656740a2e433ecefb6ac6a090455e60c3:/wxPython/src/_core_ex.py?ds=sidebyside 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