Skip to content

Commit 8112737

Browse files
committed
chore: lint
1 parent f739138 commit 8112737

File tree

1 file changed

+2
-2
lines changed
  • python/aws_lambda_powertools/logging

1 file changed

+2
-2
lines changed

python/aws_lambda_powertools/logging/logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ def logger_setup(service: str = "service_undefined", level: str = "INFO", sampli
6868
try:
6969
if sampling_rate and random.random() <= float(sampling_rate):
7070
log_level = logging.DEBUG
71-
except ValueError:
71+
except ValueError:
7272
raise ValueError(
73-
"fExpected a float value ranging 0 to 1, but received {sampling_rate} instead. Please review POWERTOOLS_LOGGER_SAMPLE_RATE environment variable."
73+
"fExpected a float value ranging 0 to 1, but received {sampling_rate} instead. Please review POWERTOOLS_LOGGER_SAMPLE_RATE environment variable." # noqa E501
7474
)
7575

7676
logger.setLevel(log_level)

0 commit comments

Comments
 (0)