@@ -170,8 +170,8 @@ def _is_tag_managed(company_key, tag_name, *, creating=False):
170
170
171
171
# Existing key is almost certainly not valid, so let's rename it,
172
172
# warn the user, and then continue.
173
- LOGGER .debug ("Key %s appears invalid, so moving it and taking it for this "
174
- "new install" , tag_name )
173
+ LOGGER .debug ("Registry key %s appears invalid, so moving it and taking it "
174
+ "for this new install" , tag_name )
175
175
try :
176
176
from _native import reg_rename_key
177
177
except ImportError :
@@ -235,10 +235,12 @@ def update_registry(root_name, install, data):
235
235
winreg .SetValueEx (tag , "ManagedByPyManager" , None , winreg .REG_DWORD , 1 )
236
236
_update_reg_values (tag , data , install , {"kind" , "Key" , "ManagedByPyManager" })
237
237
else :
238
- LOGGER .warn ("A runtime matching %s is already installed, and so "
239
- "the new one has not been registered." , data ["Key" ])
240
- LOGGER .info ("To register the new installation, remove the existing "
241
- "runtime and then run 'py install --refresh'" ,)
238
+ LOGGER .warn ("An existing runtime is registered at %s in the registry, "
239
+ "and so the new one has not been registered." , data ["Key" ])
240
+ LOGGER .info ("This may prevent some other applications from detecting "
241
+ "the new installation, although 'py -V:...' will work. "
242
+ "To register the new installation, remove the existing "
243
+ "runtime and then run 'py install --refresh'" )
242
244
243
245
244
246
def cleanup_registry (root_name , keep ):
@@ -350,8 +352,8 @@ def _get_unmanaged_installs(root):
350
352
try :
351
353
yield _read_one_unmanaged_install (company_name , tag_name , is_core , tag )
352
354
except Exception :
353
- LOGGER .debug ("Failed to read %s\\ %s registration" , company_name , tag_name )
354
- LOGGER . debug ( "ERROR" , exc_info = True )
355
+ LOGGER .debug ("Failed to read %s\\ %s registration" ,
356
+ company_name , tag_name , exc_info = True )
355
357
356
358
357
359
def _get_store_installs ():
0 commit comments