Fix: the error mesage wass using the missing field
This commit is contained in:
1 parent
935dc2b967
commit
e86aefb0a7
1 file changed
+2
-1
@@ -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')
|
||||
|
||||
|
||||
Reference in new issue
Block a user