Skip to content

Commit b8a1f1a

Browse files
committed
format
1 parent 0fa5ec9 commit b8a1f1a

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

sentry_sdk/integrations/chalice.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ def __call__(self, event, context):
2323
with capture_internal_exceptions():
2424
configured_time = context.get_remaining_time_in_millis()
2525
scope.add_event_processor(
26-
_make_request_event_processor(event, context,
27-
configured_time)
26+
_make_request_event_processor(event, context, configured_time)
2827
)
2928
try:
3029
event_obj = self.event_class(event, context)
@@ -48,9 +47,7 @@ def wrapped_view_function(**function_args):
4847
client = hub.client
4948
with hub.push_scope() as scope:
5049
with capture_internal_exceptions():
51-
configured_time = (
52-
app.lambda_context.get_remaining_time_in_millis()
53-
)
50+
configured_time = app.lambda_context.get_remaining_time_in_millis()
5451
scope.transaction = app.lambda_context.function_name
5552
scope.add_event_processor(
5653
_make_request_event_processor(

tests/integrations/chalice/test_chalice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def _generate_lambda_context(self):
2020
return LambdaContext(
2121
function_name=self._config.function_name,
2222
memory_size=self._config.lambda_memory_size,
23-
max_runtime_ms=timeout
23+
max_runtime_ms=timeout,
2424
)
2525

2626

0 commit comments

Comments
 (0)