summaryrefslogtreecommitdiff
path: root/src/leap/mail/adaptors/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/mail/adaptors/models.py')
-rw-r--r--src/leap/mail/adaptors/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/mail/adaptors/models.py b/src/leap/mail/adaptors/models.py
index 1648059..88e0e4e 100644
--- a/src/leap/mail/adaptors/models.py
+++ b/src/leap/mail/adaptors/models.py
@@ -89,7 +89,7 @@ class DocumentWrapper(object):
if not attr.startswith('_') and attr not in normalized:
raise RuntimeError(
"Cannot set attribute because it's not defined "
- "in the model: %s" % attr)
+ "in the model %s: %s" % (self.__class__, attr))
object.__setattr__(self, attr, value)
def serialize(self):