Skip to content

Commit

Permalink
fixed ProcessingException message serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
andviro committed Apr 26, 2014
1 parent a029dbe commit 7a5b012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_restless/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def decorator(*args, **kw):
return func(*args, **kw)
except ProcessingException as exception:
current_app.logger.exception(str(exception))
status, message = exception.code, str(exception)
status, message = exception.code, exception.description or str(exception)
return jsonify(message=message), status
return decorator

Expand Down

0 comments on commit 7a5b012

Please sign in to comment.