fix(bot): fix syntax error in f-string with backslash

This commit is contained in:
2026-02-16 05:57:45 -06:00
parent c903363f6e
commit 7d7d6fb3a0

View File

@@ -142,7 +142,8 @@ async def handle_medication(message, session, parsed):
await message.channel.send("**Today's Medications:**\n" + "\n".join(lines))
else:
await message.channel.send(f"Error: {resp.get('error', 'Failed to fetch today\'s schedule')}")
error_msg = "Failed to fetch today's schedule"
await message.channel.send(f"Error: {resp.get('error', error_msg)}")
elif action == "refills":
resp, status = api_request("get", "/api/medications/refills-due", token)