Browse Source

Don't replace empty api_key

pull/84/head
Ruud 13 years ago
parent
commit
4f90de4cf8
  1. 3
      couchpotato/core/logger.py

3
couchpotato/core/logger.py

@ -43,7 +43,8 @@ class CPLog(object):
# Replace api key
try:
api_key = Env.setting('api_key')
msg = msg.replace(api_key, 'API_KEY')
if api_key:
msg = msg.replace(api_key, 'API_KEY')
except:
pass

Loading…
Cancel
Save