From 6be61ac2439e9ee6f71d0ec47c3ef3bc056d2deb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Mon, 28 Mar 2011 13:36:45 +0200 Subject: [PATCH] Transmit name of missing attribute --- trytond/model/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/model/model.py b/trytond/model/model.py index 7fca77dca9..d63a8eee2a 100644 --- a/trytond/model/model.py +++ b/trytond/model/model.py @@ -110,7 +110,7 @@ class Model(WarningErrorMixin): if hasattr(model_obj, name) and \ callable(getattr(model_obj, name)): return getattr(model_obj, name) - raise AttributeError + raise AttributeError(name) def _inherits_reload(self): """