diff --git a/WakaTime.py b/WakaTime.py index 36c2fbd..e85ecb7 100644 --- a/WakaTime.py +++ b/WakaTime.py @@ -256,11 +256,10 @@ def find_python_from_registry(location, reg=None): sub_key=sub_key, )) except WindowsError: - if SETTINGS.get('debug'): - log(DEBUG, 'Could not read registry value "{reg}\\{key}".'.format( - reg=reg, - key=location, - )) + log(DEBUG, 'Could not read registry value "{reg}\\{key}".'.format( + reg=reg, + key=location, + )) return val