From c64f125dc483ebdf44b584a0584fe43fb2ad4779 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Fri, 11 Mar 2016 09:23:08 -0800 Subject: [PATCH] no need to check debug mode before logging --- WakaTime.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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