Don't replace empty api_key

This commit is contained in:
Ruud committed 2012-02-15 21:11:59 +01:00
1 parent b50647885f
commit 4f90de4cf8
1 file changed
+2 -1
+2 -1
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