Don't replace empty api_key

This commit is contained in:
Ruud
2012-02-15 21:11:59 +01:00
parent b50647885f
commit 4f90de4cf8

View File

@@ -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