Function name refactor

So the name is clearer
This commit is contained in:
Théo DURR 2022-08-27 21:36:45 +02:00
parent 05b86e1f7a
commit 64f8d9bad3
No known key found for this signature in database
GPG Key ID: 708858E9F7281E30
1 changed files with 2 additions and 2 deletions

View File

@ -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)]