From b6f64e6cd007d313e244966cacaced130f87e617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Tue, 11 Feb 2025 17:40:31 +0100 Subject: [PATCH] Fix string formatting in job logging --- discord_reminder_bot/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord_reminder_bot/main.py b/discord_reminder_bot/main.py index 67d949a..79b6e6b 100644 --- a/discord_reminder_bot/main.py +++ b/discord_reminder_bot/main.py @@ -160,7 +160,7 @@ class RemindBotClient(discord.Client): time: str = "Paused" if hasattr(job, "next_run_time") and job.next_run_time and isinstance(job.next_run_time, datetime.datetime): time = job.next_run_time.strftime("%Y-%m-%d %H:%M:%S") - logger.info(rf"\t{job.id}: {job.name} - {time} - {msg}") + logger.info(f"\t{job.id}: {job.name} - {time} - {msg}") except (AttributeError, LookupError): logger.exception("Failed to loop through jobs")