samuraisam / django-json-rpc

JSON-RPC Implementation for Django
MIT License
286 stars 83 forks source link

Put stacktrace into the OtherError only if DEBUG is enabled #76

Closed J3173 closed 8 years ago

J3173 commented 9 years ago

It is good practise to not produce detailed error messages in production environments, when DEBUG is off.

This pull request will only put the stacktrace into the OtherError if DEBUG is enabled.

See also the Django documentation on the DEBUG setting.