From c924b3d115044dc068569a2217569212166735f4 Mon Sep 17 00:00:00 2001 From: Jeroen Ruigrok van der Werven Date: Wed, 6 May 2009 13:16:36 +0000 Subject: Be more explicit about the error we are catching. Requested by: Antoine Pitrou --- Lib/locale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ else: oldloc = setlocale(LC_CTYPE) try: setlocale(LC_CTYPE, "") - except: + except Error: pass result = nl_langinfo(CODESET) setlocale(LC_CTYPE, oldloc) -- cgit v0.12