Skip to content

Commit 070eb1a

Browse files
authored
Pass when exception is raised trying to set the transaction name (getsentry#722)
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.
1 parent f3c666a commit 070eb1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/pyramid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def sentry_patched_call_view(registry, request, *args, **kwargs):
8181
elif integration.transaction_style == "route_pattern":
8282
scope.transaction = request.matched_route.pattern
8383
except Exception:
84-
raise
84+
pass
8585

8686
scope.add_event_processor(
8787
_make_event_processor(weakref.ref(request), integration)

0 commit comments

Comments
 (0)