546
546
if isinstance(_obj, dict):
548
548
_tstyle = _parse_textstyle(_obj)
549
556
_color = _tstyle.getColor()
550
557
_colors = globals.prefs['COLORS']
551
558
if _color not in _colors:
553
561
except StandardError, _e:
554
562
sys.stderr.write("Invalid TextStyle: " + _e + "\n")