Skip to content

Commit fce041b

Browse files
committed
Unregister WinPython distribution: ignoring errors when trying to remove registry keys
(just print warnings)
1 parent 5594dac commit fce041b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

winpython/associate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def unregister(target, current=True):
182182
winreg.DeleteKey(root, key)
183183
except WindowsError:
184184
rootkey = 'HKEY_CURRENT_USER' if current else 'HKEY_LOCAL_MACHINE'
185-
raise WindowsError(r'Unable to remove %s\%s' % (rootkey, key))
185+
print(r'Unable to remove %s\%s' % (rootkey, key), file=sys.stderr)
186186

187187
# Start menu shortcuts
188188
for path, desc, fname in _get_shortcut_data(target, current=current):

0 commit comments

Comments
 (0)