--- a/scripts/uninstall.py Sat Nov 21 19:31:16 2020 +0100 +++ b/scripts/uninstall.py Sun Nov 22 16:04:59 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))