cwvreg.py
branchstable
changeset 7465 bb0c89d1a078
parent 7302 c281afe35b8b
child 7473 a164fdf3de5d
--- a/cwvreg.py	Mon Jun 06 15:00:58 2011 +0200
+++ b/cwvreg.py	Tue Jun 07 08:02:11 2011 +0200
@@ -756,7 +756,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}