MCPcopy
hub / github.com/django/django / paranoid_view

Function paranoid_view

tests/view_tests/views.py:223–236  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

221@sensitive_variables()
222@sensitive_post_parameters()
223def paranoid_view(request):
224 # Do not just use plain strings for the variables' values in the code
225 # so that the tests don't return false positives when the function's source
226 # is displayed in the exception report.
227 cooked_eggs = "".join(["s", "c", "r", "a", "m", "b", "l", "e", "d"]) # NOQA
228 sauce = "".join( # NOQA
229 ["w", "o", "r", "c", "e", "s", "t", "e", "r", "s", "h", "i", "r", "e"]
230 )
231 try:
232 raise Exception
233 except Exception:
234 exc_info = sys.exc_info()
235 send_log(request, exc_info)
236 return technical_500_response(request, *exc_info)
237
238
239def sensitive_args_function_caller(request):

Callers

nothing calls this directly

Calls 3

technical_500_responseFunction · 0.90
send_logFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected