no need to check debug mode before logging

This commit is contained in:
Alan Hamlett 2016-03-11 09:23:08 -08:00
parent 050b14fb53
commit c64f125dc4

View file

@ -256,11 +256,10 @@ def find_python_from_registry(location, reg=None):
sub_key=sub_key, sub_key=sub_key,
)) ))
except WindowsError: except WindowsError:
if SETTINGS.get('debug'): log(DEBUG, 'Could not read registry value "{reg}\\{key}".'.format(
log(DEBUG, 'Could not read registry value "{reg}\\{key}".'.format( reg=reg,
reg=reg, key=location,
key=location, ))
))
return val return val