Skip to content

Commit 23e2cfc

Browse files
committed
rename handler
1 parent 76e5cee commit 23e2cfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datadog_lambda/handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class HandlerError(Exception):
1818
pass
1919

2020

21-
class _ErrorOutsideHandlerDecorator(object):
21+
class _ErrorFallbackHandler(object):
2222
"""
2323
Decorator for when an exception occurs outside of the handler function.
2424
Emits telemetry and re-raises the exception.
@@ -58,4 +58,4 @@ def __call__(self, event, context, **kwargs):
5858
handler_func = getattr(handler_module, handler_name)
5959
handler = datadog_lambda_wrapper(handler_func)
6060
except Exception as e:
61-
handler = _ErrorOutsideHandlerDecorator(e, modified_mod_name, start_time_ns)
61+
handler = _ErrorFallbackHandler(e, modified_mod_name, start_time_ns)

0 commit comments

Comments
 (0)