eric6/eric6_api.py

changeset 7836
2f0d208b8137
parent 7785
9978016560ec
child 7923
91e843545d9a
diff -r 0835ed67714b -r 2f0d208b8137 eric6/eric6_api.py
--- a/eric6/eric6_api.py	Sat Nov 21 19:31:16 2020 +0100
+++ b/eric6/eric6_api.py	Sun Nov 22 16:04:59 2020 +0100
@@ -276,7 +276,7 @@
                         api = apiGenerator.genAPI(True, basePackage,
                                                   includePrivate)
                         bases = apiGenerator.genBases(includePrivate)
-                    except IOError as v:
+                    except OSError as v:
                         sys.stderr.write("{0} error: {1}\n".format(file, v[1]))
                         continue
                     except ImportError as v:
@@ -299,7 +299,7 @@
             with open(outputFile, "w", encoding="utf-8",
                       newline=newline) as out:
                 out.write("\n".join(sorted(apis)) + "\n")
-        except IOError as v:
+        except OSError as v:
             sys.stderr.write("{0} error: {1}\n".format(outputFile, v[1]))
             sys.exit(3)
         try:
@@ -308,7 +308,7 @@
                 for baseEntry in sorted(basesDict.keys()):
                     out.write("{0} {1}\n".format(
                         baseEntry, " ".join(sorted(basesDict[baseEntry]))))
-        except IOError as v:
+        except OSError as v:
             sys.stderr.write("{0} error: {1}\n".format(basesFile, v[1]))
             sys.exit(3)
     

eric ide

mercurial