Skip to content

Commit 7a927f1

Browse files
fuck off ruff
1 parent 4e85010 commit 7a927f1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def _setup_ping_command_easter_egg_probability(cls) -> None:
313313
os.getenv("PING_COMMAND_EASTER_EGG_PROBABILITY", "0.01"),
314314
)
315315
except ValueError as e:
316-
logger.error(INVALID_PING_COMMAND_EASTER_EGG_PROBABILITY_MESSAGE)
316+
logger.error(INVALID_PING_COMMAND_EASTER_EGG_PROBABILITY_MESSAGE) # noqa: TRY400
317317
raise (
318318
ImproperlyConfiguredError(INVALID_PING_COMMAND_EASTER_EGG_PROBABILITY_MESSAGE)
319319
) from e
@@ -354,7 +354,7 @@ def _get_messages_dict(cls, raw_messages_file_path: str | None) -> Mapping[str,
354354
try:
355355
messages_dict: object = json.load(messages_file)
356356
except json.JSONDecodeError as e:
357-
logger.error(JSON_DECODING_ERROR_MESSAGE)
357+
logger.error(JSON_DECODING_ERROR_MESSAGE) # noqa: TRY400
358358
raise ImproperlyConfiguredError(JSON_DECODING_ERROR_MESSAGE) from e
359359

360360
if not isinstance(messages_dict, Mapping):
@@ -670,7 +670,7 @@ def _setup_statistics_days(cls) -> None:
670670
INVALID_STATISTICS_DAYS_MESSAGE: Final[str] = (
671671
"STATISTICS_DAYS must contain the statistics period in days."
672672
)
673-
logger.error(INVALID_STATISTICS_DAYS_MESSAGE)
673+
logger.error(INVALID_STATISTICS_DAYS_MESSAGE) # noqa: TRY400
674674
raise ImproperlyConfiguredError(INVALID_STATISTICS_DAYS_MESSAGE) from e
675675

676676
cls._settings["STATISTICS_DAYS"] = timedelta(days=raw_statistics_days)

0 commit comments

Comments
 (0)