scripts/install-debugclients.py

branch
maintenance
changeset 7850
e64b178499da
parent 7836
2f0d208b8137
child 7894
4370a8b30648
child 7924
8a96736d465e
diff -r 3e7d767119a9 -r e64b178499da scripts/install-debugclients.py
--- a/scripts/install-debugclients.py	Sun Nov 01 11:17:06 2020 +0100
+++ b/scripts/install-debugclients.py	Sat Dec 05 12:29:26 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