summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/locale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index d3c0eb1..81190be 100644
--- a/Lib/locale.py
+++ b/Lib/locale.py
@@ -719,7 +719,7 @@ def _print_locale():
try:
LC_MESSAGES
-except:
+except NameError:
pass
else:
__all__.append("LC_MESSAGES")