Fix frontend.afe.rpc_interface_unittest to not require Python >=2.5
(there is no Exception.message in Python <2.5).
Signed-off-by: Mihai Rusu <dizzy@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4436 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/model_logic.py b/frontend/afe/model_logic.py
index 2f03fef..0ddcefe 100644
--- a/frontend/afe/model_logic.py
+++ b/frontend/afe/model_logic.py
@@ -756,7 +756,7 @@
python_value = f.to_python(
getattr(self, f.attname, f.get_default()))
except django.core.exceptions.ValidationError, e:
- error_dict[f.name] = str(e.message)
+ error_dict[f.name] = str(e)
continue
if not f.blank and not python_value: