Skip to content

Commit 36f994c

Browse files
committed
Update linting.
1 parent eb5244a commit 36f994c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

datadog_lambda/wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
try:
6969
from ddtrace.profiling import profiler
7070
except Exception as e:
71-
logger.error(f'Failed to initialize profiler: [{e.__class__.__name__})] {e}')
71+
logger.error(f"Failed to initialize profiler: [{e.__class__.__name__})] {e}")
7272

7373
if config.llmobs_enabled:
7474
from ddtrace.llmobs import LLMObs

tests/test_wrapper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,8 @@ def lambda_handler(event, context):
967967
@patch("datadog_lambda.config.Config.profiling_enabled", True)
968968
def test_profiling_import_errors_caught(monkeypatch):
969969
# when importing profiler fails, disable profiling instead of crashing app
970-
monkeypatch.setitem(sys.modules, "ddtrace.profiling", None) # force ModuleNotFoundError
970+
monkeypatch.setitem(
971+
sys.modules, "ddtrace.profiling", None
972+
) # force ModuleNotFoundError
971973
importlib.reload(wrapper)
972974
assert not hasattr(wrapper.datadog_lambda_wrapper, "prof")

0 commit comments

Comments
 (0)