|
|
@@ -12,7 +12,7 @@ def custom_exception_handler(exc, context):
|
|
|
response = exception_handler(exc, context)
|
|
|
if response is None:
|
|
|
return Response({
|
|
|
- 'code': response.status_code,
|
|
|
+ 'code': status.HTTP_500_INTERNAL_SERVER_ERROR,
|
|
|
'msg': 'error:{exc}'.format(exc=exc),
|
|
|
'data': ''
|
|
|
}, status=status.HTTP_500_INTERNAL_SERVER_ERROR, exception=True)
|