mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 19:47:20 -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
|
return
|
||||||
|
|
||||||
# Cleanly handle exceptions that occur from REST API requests
|
# Cleanly handle exceptions that occur from REST API requests
|
||||||
# if is_api_request(request):
|
if is_api_request(request):
|
||||||
# return rest_api_server_error(request)
|
return rest_api_server_error(request)
|
||||||
|
|
||||||
# Ignore Http404s (defer to Django's built-in 404 handling)
|
# Ignore Http404s (defer to Django's built-in 404 handling)
|
||||||
if isinstance(exception, Http404):
|
if isinstance(exception, Http404):
|
||||||
|
Loading…
Reference in New Issue
Block a user