scripts/install-debugclients.py

changeset 7836
2f0d208b8137
parent 7639
422fd05e9c91
child 7894
4370a8b30648
child 7924
8a96736d465e
--- a/scripts/install-debugclients.py	Sat Nov 21 19:31:16 2020 +0100
+++ b/scripts/install-debugclients.py	Sun Nov 22 16:04:59 2020 +0100
@@ -174,7 +174,7 @@
         dirname = os.path.join(pyModDir, installPackage)
         if os.path.exists(dirname):
             shutil.rmtree(dirname, True)
-    except (IOError, OSError) as msg:
+    except OSError as msg:
         sys.stderr.write(
             'Error: {0}\nTry install with admin rights.\n'.format(msg))
         exit(7)
@@ -220,7 +220,7 @@
         # copy the license file
         shutilCopy(os.path.join(sourceDir, "docs", "LICENSE.GPL3"), targetDir)
         
-    except (IOError, OSError) as msg:
+    except OSError as msg:
         sys.stderr.write(
             'Error: {0}\nTry install with admin rights.\n'.format(msg))
         return(7)
@@ -297,7 +297,7 @@
                 shutil.rmtree(distDir, True)
             else:
                 cleanUp()
-    except (IOError, OSError) as msg:
+    except OSError as msg:
         sys.stderr.write('Error: {0}\nTry install as root.\n'.format(msg))
         exit(7)
 

eric ide

mercurial