Fix a typo introduced at 1.21

M IOBinding.py

Backported to 23-maint
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py
index 391be77..bddd4d6 100644
--- a/Lib/idlelib/IOBinding.py
+++ b/Lib/idlelib/IOBinding.py
@@ -29,7 +29,7 @@
 try:
     import locale
     locale.setlocale(locale.LC_CTYPE, "")
-except (ImportError, locale.error):
+except (ImportError, locale.Error):
     pass
 
 encoding = "ascii"