Fix: the error mesage wass using the missing field

This commit is contained in:
Bertrand Chenal committed 2008-01-11 22:49:26 +01:00
1 parent 935dc2b967
commit e86aefb0a7
1 file changed
+2 -1
+2 -1
View File
@@ -135,7 +135,8 @@ class RecordTagHandler:
# Manage the top level tag
if name == "record":
self.model = self.mh.pool.get(attributes["model"].encode('utf8'))
assert self.model, "The model %s does not exist !" % (rec_model,)
assert self.model, "The model %s does not exist !" % \
(attributes["model"],)
self.xml_id = attributes["id"].encode('utf8')