def custom_exception_handler(exc, context):
"""
DRF's custom exception handler
"""
response = exception_handler(exc, context)
if response is not None:
# This might be useful for overwriting default error messages. :>
pass
return response
评论列表
文章目录