changeset 5689 | 18d4e78b9369 |
parent 5688 | 21658a3a386a |
child 5811 | e77cea9721e7 |
--- a/web/views/schema.py Mon Jun 07 19:17:16 2010 +0200 +++ b/web/views/schema.py Mon Jun 07 19:17:41 2010 +0200 @@ -691,7 +691,7 @@ kwargs['headlabel'] = s2d.CARD_MAP[rdef.cardinality[0]] try: kwargs['color'] = self.colors[rschema] - except: + except KeyError: kwargs['color'] = self.nextcolor() self.colors[rschema] = kwargs['color'] kwargs['fontcolor'] = kwargs['color']