summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/IOBinding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py
index 0c3ae7f..391be77 100644
--- a/Lib/idlelib/IOBinding.py
+++ b/Lib/idlelib/IOBinding.py
@@ -29,7 +29,7 @@ except ImportError:
try:
import locale
locale.setlocale(locale.LC_CTYPE, "")
-except ImportError:
+except (ImportError, locale.error):
pass
encoding = "ascii"