MCPcopy
hub / github.com/django/django / inner

Function inner

django/core/handlers/exception.py:41–48  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

39
40 @wraps(get_response)
41 async def inner(request):
42 try:
43 response = await get_response(request)
44 except Exception as exc:
45 response = await sync_to_async(
46 response_for_exception, thread_sensitive=False
47 )(request, exc)
48 return response
49
50 return inner
51 else:

Callers 1

registerMethod · 0.50

Calls 1

response_for_exceptionFunction · 0.85

Tested by

no test coverage detected