style: Fix logging in ColorDict.

This commit is contained in:
Florian Bruhin 2015-08-19 20:39:31 +02:00
parent 9b82fae6fb
commit b3395a1a9c

View File

@ -101,7 +101,7 @@ class ColorDict(dict):
try:
val = super().__getitem__(key)
except KeyError:
log.config.exception("No color defined for {}!")
log.config.exception("No color defined for {}!".format(key))
return ''
if 'fg' in key.split('.'):
return 'color: {};'.format(val)