no need to check debug mode before logging
This commit is contained in:
parent
050b14fb53
commit
c64f125dc4
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue