author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Mon, 07 Jun 2010 19:17:41 +0200 | |
changeset 5689 | 18d4e78b9369 |
parent 5688 | 21658a3a386a |
child 5691 | ba2347050144 |
--- 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']