Skip to content

Commit 5205dc2

Browse files
author
botON
committed
fix(wizard): correct error message formatting in schedule_wizards function
Updated the error message in the schedule_wizards function to include the username of the admin when a BadRequest occurs, ensuring clearer logging and debugging information.
1 parent ad57851 commit 5205dc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pycamp_bot/commands/wizard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ async def schedule_wizards(update, context, pycamp=None):
240240
parse_mode="MarkdownV2"
241241
)
242242
except BadRequest as e:
243-
m = "Coulnd't return the Wizards list to the admin. ".format(update.message.from_user.username)
243+
m = "Couldn't return the Wizards list to the admin ({}).".format(update.message.from_user.username)
244244
if len(msg) >= MSG_MAX_LEN:
245245
m += "The message is too long. Check the data in the DB ;-)"
246246
logger.exception(m)

0 commit comments

Comments
 (0)