Skip to content

Commit 776a6a9

Browse files
committed
don't specify environ as argument of the request_started signal (#233)
Django Channels doesn't provide environ when calling signal handlers. As we don't need it anyway, we can simply accept any arguments. Fixes #232 Closes #233
1 parent f264e1d commit 776a6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticapm/contrib/django/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def register_handlers(client):
3838

3939
request_started.disconnect(dispatch_uid=REQUEST_START_DISPATCH_UID)
4040
request_started.connect(
41-
lambda sender, environ, **kwargs: client.begin_transaction('request')
41+
lambda sender, *args, **kwargs: client.begin_transaction('request')
4242
if _should_start_transaction(client) else None,
4343
dispatch_uid=REQUEST_START_DISPATCH_UID, weak=False
4444
)

0 commit comments

Comments
 (0)