From b97ce81dd2c979de9f969f53c92415e94217c300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DURR?= Date: Sat, 27 Aug 2022 19:48:23 +0200 Subject: [PATCH] Fixed black lint --- sith/urls.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sith/urls.py b/sith/urls.py index f824da3c..7f1d71de 100644 --- a/sith/urls.py +++ b/sith/urls.py @@ -54,9 +54,11 @@ handler500 = "core.views.internal_servor_error" # Sentry Test case if settings.DEBUG: + def trigger_error(request): division_by_zero = 1 / 0 + urlpatterns = [ path("", include(("core.urls", "core"), namespace="core")), path("rootplace/", include(("rootplace.urls", "rootplace"), namespace="rootplace")), @@ -92,13 +94,12 @@ urlpatterns = [ ] - if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) import debug_toolbar urlpatterns += [path("__debug__/", include(debug_toolbar.urls))] - + # Sentry test case urlpatterns += [path("sentry-debug/", trigger_error)]