Be more explicit about the error we are catching.

Requested by: Antoine Pitrou
parent 56342d57
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment