Be more explicit about the error we are catching.

Requested by: Antoine Pitrou
diff --git a/Lib/locale.py b/Lib/locale.py
index f44effe..5e963d1 100644
--- a/Lib/locale.py
+++ b/Lib/locale.py
@@ -555,7 +555,7 @@
                 oldloc = setlocale(LC_CTYPE)
                 try:
                     setlocale(LC_CTYPE, "")
-                except:
+                except Error:
                     pass
                 result = nl_langinfo(CODESET)
                 setlocale(LC_CTYPE, oldloc)