entity.py
changeset 7296 e559ade02665
parent 7293 97505b798975
parent 7288 b156200ebc9d
child 7304 66fa1b7ac784
--- a/entity.py	Mon May 02 15:07:13 2011 +0200
+++ b/entity.py	Mon May 02 15:59:30 2011 +0200
@@ -272,7 +272,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: