cwvreg.py
changeset 7473 a164fdf3de5d
parent 7460 2455cdbeadca
parent 7465 bb0c89d1a078
child 7990 a673d1d9a738
--- a/cwvreg.py	Tue Jun 07 16:07:06 2011 +0200
+++ b/cwvreg.py	Wed Jun 08 17:08:00 2011 +0200
@@ -758,7 +758,7 @@
                           sitewide=False):
         """register a given property"""
         properties = self['propertydefs']
-        assert type in YAMS_TO_PY
+        assert type in YAMS_TO_PY, 'unknown type %s' % type
         properties[key] = {'type': type, 'vocabulary': vocabulary,
                            'default': default, 'help': help,
                            'sitewide': sitewide}