diff --git a/src/caosdb/common/models.py b/src/caosdb/common/models.py index 046fa06b5c3f0f8a674233f58ed6da642f731528..9042cdf262b396b40c117867d77c2d9ce95073b7 100644 --- a/src/caosdb/common/models.py +++ b/src/caosdb/common/models.py @@ -1170,7 +1170,7 @@ out: List[Entity] else: raise TypeError( 'Child was neither a Property, nor a Parent, nor a Message.\ - Was ' + str(type(child))) + Was ' + str(type(child)) + "\n" + str(child)) # add VALUE value = None @@ -2732,9 +2732,11 @@ class Container(list): elif isinstance(entity, QueryTemplate): super().append(entity) else: - raise TypeError( - "Entity was neither an id nor a name nor an entity." + - " (was " + str(type(entity)) + ")") + warn("Entity was neither an id nor a name nor an entity." + + " (was " + str(type(entity)) + ":\n" + str(entity) + ")") + # raise TypeError( + # "Entity was neither an id nor a name nor an entity." + + # " (was " + str(type(entity)) + "\n" + str(entity) + ")") return self