mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Remove very old unused file
This commit is contained in:
parent
0dd3389518
commit
4aeac79ba5
@ -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
|
|
Loading…
Reference in New Issue
Block a user