mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-28 02:28:43 +00:00
Remove very old unused file
This commit is contained in:
1 parent
0dd3389518
commit
4aeac79ba5
1 file changed
-13
@@ -1,13 +0,0 @@
|
|||||||
from rest_framework.views import exception_handler
|
|
||||||
|
|
||||||
|
|
||||||
def api_exception_handler(exc, context):
|
|
||||||
response = exception_handler(exc, context)
|
|
||||||
|
|
||||||
# Now add the HTTP status code to the response.
|
|
||||||
if response is not None:
|
|
||||||
|
|
||||||
data = {'error': response.data}
|
|
||||||
response.data = data
|
|
||||||
|
|
||||||
return response
|
|
||||||
Reference in new issue
Block a user