summaryrefslogtreecommitdiffstats
path: root/Lib/locale.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/locale.py')
-rw-r--r--Lib/locale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index 75a6435..4441e6d 100644
--- a/Lib/locale.py
+++ b/Lib/locale.py
@@ -566,7 +566,7 @@ else:
oldloc = setlocale(LC_CTYPE)
try:
setlocale(LC_CTYPE, "")
- except:
+ except Error:
pass
result = nl_langinfo(CODESET)
setlocale(LC_CTYPE, oldloc)