]> git.saurik.com Git - wxWidgets.git/commitdiff
Check for TypeError too
authorRobin Dunn <robin@alldunn.com>
Sat, 9 Apr 2005 20:06:58 +0000 (20:06 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 9 Apr 2005 20:06:58 +0000 (20:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_core_ex.py

index 45f7eeab6d73aaa96060c9547802951af4a717ee..0e5a51307b85f7bb31073ac6a24dafa3a817be3c 100644 (file)
@@ -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