Replace IOError with OSError (#16715)
diff --git a/Lib/configparser.py b/Lib/configparser.py
index 9d5f779..ea84652 100644
--- a/Lib/configparser.py
+++ b/Lib/configparser.py
@@ -688,7 +688,7 @@
             try:
                 with open(filename, encoding=encoding) as fp:
                     self._read(fp, filename)
-            except IOError:
+            except OSError:
                 continue
             read_ok.append(filename)
         return read_ok