scripts/uninstall.py

branch
maintenance
changeset 7850
e64b178499da
parent 7836
2f0d208b8137
child 7923
91e843545d9a
diff -r 3e7d767119a9 -r e64b178499da scripts/uninstall.py
--- a/scripts/uninstall.py	Sun Nov 01 11:17:06 2020 +0100
+++ b/scripts/uninstall.py	Sat Dec 05 12:29:26 2020 +0100
@@ -195,7 +195,7 @@
         removeConfigurationData()
         
         print("\nUninstallation completed")
-    except (IOError, OSError) as msg:
+    except OSError as msg:
         sys.stderr.write(
             'Error: {0}\nTry uninstall with admin rights.\n'.format(msg))
         exit(7)
@@ -226,7 +226,7 @@
             if os.path.exists(linkPath):
                 try:
                     os.remove(linkPath)
-                except EnvironmentError:
+                except OSError:
                     # maybe restrictions prohibited link removal
                     print("Could not remove '{0}'.".format(linkPath))
     
@@ -239,7 +239,7 @@
         if os.path.exists(eric6EntryPath):
             try:
                 shutil.rmtree(eric6EntryPath)
-            except EnvironmentError:
+            except OSError:
                 # maybe restrictions prohibited link removal
                 print("Could not remove '{0}'.".format(eric6EntryPath))
 

eric ide

mercurial