From b70a492f66fb253c3f3ba003e57be5defcb50c56 Mon Sep 17 00:00:00 2001 From: Bruno Marques Date: Tue, 28 Jun 2016 17:45:07 -0300 Subject: [PATCH] Fixed build_error() Python 3 incompatibility --- restless/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restless/resources.py b/restless/resources.py index ce85805..870aee9 100644 --- a/restless/resources.py +++ b/restless/resources.py @@ -208,7 +208,7 @@ def build_error(self, err): :returns: A response object """ data = { - 'error': err.message, + 'error': err.args[0], } if self.is_debug():