branch | 3.26 |
changeset 12263 | e9dd37ffa076 |
parent 12208 | 159dce89a145 |
child 12318 | e947954e0ffc |
--- a/cubicweb/web/views/ajaxcontroller.py Wed Feb 07 09:20:32 2018 +0100 +++ b/cubicweb/web/views/ajaxcontroller.py Tue Feb 06 16:31:49 2018 +0100 @@ -153,7 +153,7 @@ result = func(*args) except (RemoteCallFailed, DirectResponse): raise - except ValidationError: + except ValidationError as exc: raise RemoteCallFailed(exc_message(exc, self._cw.encoding), status=http_client.BAD_REQUEST) except Exception as exc: