I wonder why find_bad_key()
didn’t work for you. I tested it by removing read access for the Users group from a single key. It wouldn’t work if you ran the script with admin access if administrators can access the key. But I presume you ran it the same shell context in which ensurepip
failed. Mysterious.
1 Like
The way that I had restricted access is different. When I did it, I entered the key’s properties, pressed the Advanced button, I added a new group with the security principle Everyone and selected Deny. So when I undid the damage, I removed the Everyone group form the list. Not sure if that helps in figuring it out, but I’m glad it is solved
Not really. it shall remain a mystery. Now someone just has to step up with a pull request to fix _winapi._mimetypes_read_windows_registry()
. It’s an easy fix. There’s no reason to fail if a subkey of HKCR can’t be accessed. It just has to reset the value of err
to ERROR_SUCCESS
(0) before continuing the loop.
1 Like