mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 11:37:21 -06:00
Re-enable error handling in middleware (disabled for testing)
This commit is contained in:
parent
40a654b21e
commit
0c22e38006
@ -70,8 +70,8 @@ class CoreMiddleware:
|
||||
return
|
||||
|
||||
# Cleanly handle exceptions that occur from REST API requests
|
||||
# if is_api_request(request):
|
||||
# return rest_api_server_error(request)
|
||||
if is_api_request(request):
|
||||
return rest_api_server_error(request)
|
||||
|
||||
# Ignore Http404s (defer to Django's built-in 404 handling)
|
||||
if isinstance(exception, Http404):
|
||||
|
Loading…
Reference in New Issue
Block a user