entity.py
brancholdstable
changeset 7287 601ad29268ab
parent 7213 7644e68c4e9f
child 7288 b156200ebc9d
--- a/entity.py	Fri Apr 29 19:28:20 2011 +0200
+++ b/entity.py	Fri Apr 29 19:29:22 2011 +0200
@@ -270,7 +270,7 @@
                 role = 'object'
             else:
                 role = 'subject'
-            assert eschema.has_relation(attr, role)
+            assert eschema.has_relation(attr, role), '%s %s not found on %s' % (attr, role, eschema)
             rschema = eschema.subjrels[attr] if role == 'subject' else eschema.objrels[attr]
             if not rschema.final and isinstance(value, (tuple, list, set, frozenset)):
                 if len(value) == 1: