Replace IOError with OSError (#16715)
diff --git a/Lib/uuid.py b/Lib/uuid.py
index 0df0743..5d091b9 100644
--- a/Lib/uuid.py
+++ b/Lib/uuid.py
@@ -329,7 +329,7 @@
                         if words[i] in hw_identifiers:
                             return int(
                                 words[get_index(i)].replace(':', ''), 16)
-        except IOError:
+        except OSError:
             continue
     return None
 
@@ -371,7 +371,7 @@
     for dir in dirs:
         try:
             pipe = os.popen(os.path.join(dir, 'ipconfig') + ' /all')
-        except IOError:
+        except OSError:
             continue
         else:
             for line in pipe: