Skip to content

Commit

Permalink
Pass when exception is raised trying to set the transaction name (#722)
Browse files Browse the repository at this point in the history
When Pyramid can't match the route request.matched_route is set to None. The patched call view is throwing an AttributeException trying to set the transaction name.
  • Loading branch information
robindboer authored Jun 18, 2020
1 parent f3c666a commit 070eb1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/pyramid.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def sentry_patched_call_view(registry, request, *args, **kwargs):
elif integration.transaction_style == "route_pattern":
scope.transaction = request.matched_route.pattern
except Exception:
raise
pass

scope.add_event_processor(
_make_event_processor(weakref.ref(request), integration)
Expand Down

0 comments on commit 070eb1a

Please sign in to comment.