Skip to content

Commit f1300a4

Browse files
committed
Fix new flake8 errors.
1 parent 49b2b7e commit f1300a4

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
@@ -568,9 +568,8 @@ def inject_correlation_ids():
568568
# Override the log format of the AWS provided LambdaLoggerHandler
569569
root_logger = logging.getLogger()
570570
for handler in root_logger.handlers:
571-
if (
572-
handler.__class__.__name__ == "LambdaLoggerHandler"
573-
and type(handler.formatter) == logging.Formatter
571+
if handler.__class__.__name__ == "LambdaLoggerHandler" and isinstance(
572+
handler.formatter, logging.Formatter
574573
):
575574
handler.setFormatter(
576575
logging.Formatter(

0 commit comments

Comments
 (0)