Skip to content

Commit 4059059

Browse files
committed
Fix new flake8 errors.
1 parent b7d59f6 commit 4059059

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

datadog_lambda/tracing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,8 @@ def inject_correlation_ids():
641641
# Override the log format of the AWS provided LambdaLoggerHandler
642642
root_logger = logging.getLogger()
643643
for handler in root_logger.handlers:
644-
if (
645-
handler.__class__.__name__ == "LambdaLoggerHandler"
646-
and type(handler.formatter) == logging.Formatter
644+
if handler.__class__.__name__ == "LambdaLoggerHandler" and isinstance(
645+
handler.formatter, logging.Formatter
647646
):
648647
handler.setFormatter(
649648
logging.Formatter(

0 commit comments

Comments
 (0)