Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0897f0c

Browse files
author
Skip Montanaro
committed
eliminate unqualified except when checking for presence of LC_MESSAGES
see bug 411881
1 parent a959a36 commit 0897f0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/locale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ def _init_categories(categories=categories):
719719

720720
try:
721721
LC_MESSAGES
722-
except:
722+
except NameError:
723723
pass
724724
else:
725725
__all__.append("LC_MESSAGES")

0 commit comments

Comments
 (0)