'Override dict __getitem__.
Args:
key: The key to get from the dict.
Return:
If a value wasn\'t found, return an empty string.
(Color not defined, so no output in the stylesheet)
else, return the plain value.'

def __getitem__(self, key):

    try:
        val = self.data[key]
    except KeyError:
        log.config.exception('No    color    defined    for    {}!'.format(key))
        return ''
    if isinstance(val, QColor):
        raise TypeError('QColor    passed    to    ColorDict!')
    else:
        return val
