From 64f8d9bad3eef703a5939b3da43f4724c9a9fb09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DURR?= Date: Sat, 27 Aug 2022 21:36:45 +0200 Subject: [PATCH] Function name refactor So the name is clearer --- sith/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sith/urls.py b/sith/urls.py index 9a49ca8c..d8086d05 100644 --- a/sith/urls.py +++ b/sith/urls.py @@ -106,7 +106,7 @@ if settings.DEBUG: NOTE : you need to specify the SENTRY_DSN setting in settings_custom.py """ - def trigger_error(request): + def raise_exception(request): division_by_zero = 1 / 0 - urlpatterns += [path("sentry-debug/", trigger_error)] + urlpatterns += [path("sentry-debug/", raise_exception)]