Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed Jun 21, 2023
1 parent af4a72d commit 71341f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/django/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def _set_transaction_name_and_source(scope, transaction_style, request):
# This exception only gets thrown when transaction_style is `function_name`
# So we don't check here what style is configured
if hasattr(urlconf, "handler404"):
handler = getattr(urlconf, "handler404")
handler = urlconf.handler404
scope.transaction = transaction_from_function(
getattr(handler, "view_class", handler)
)
Expand Down

0 comments on commit 71341f7

Please sign in to comment.