Skip to content

Commit f876f19

Browse files
committed
Remove unused kwargs
1 parent 51d2b6d commit f876f19

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

datadog_lambda/wrapper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(self, func):
5757
patch_all()
5858
logger.debug("datadog_lambda_wrapper initialized")
5959

60-
def _before(self, event, context, **kwargs):
60+
def _before(self, event, context):
6161
set_cold_start()
6262
try:
6363
submit_invocations_metric(context)
@@ -69,22 +69,22 @@ def _before(self, event, context, **kwargs):
6969
except Exception:
7070
traceback.print_exc()
7171

72-
def _after(self, event, context, **kwargs):
72+
def _after(self, event, context):
7373
try:
7474
if not self.flush_to_log:
7575
lambda_stats.flush(float("inf"))
7676
except Exception:
7777
traceback.print_exc()
7878

7979
def __call__(self, event, context, **kwargs):
80-
self._before(event, context, **kwargs)
80+
self._before(event, context)
8181
try:
8282
return self.func(event, context, **kwargs)
8383
except Exception:
8484
submit_errors_metric(context)
8585
raise
8686
finally:
87-
self._after(event, context, **kwargs)
87+
self._after(event, context)
8888

8989

9090
datadog_lambda_wrapper = _LambdaDecorator

0 commit comments

Comments
 (0)