Catch locale.error as well. Fixes #788378. Will backport to 2.3.
1 file changed