Skip to content

Fix IRC log message when leaving a room - #1782

Open
kayaal34 wants to merge 2 commits into
errbotio:masterfrom
kayaal34:fix-irc-left-room-log
Open

kayaal34 wants to merge 2 commits into
errbotio:masterfrom
kayaal34:fix-irc-left-room-log

Conversation

@kayaal34

Copy link
Copy Markdown

log.info("Left room {}.", leaving_room) uses a str.format placeholder with logging, which formats with %. With no %s in the string, logging raises while formatting and prints a --- Logging error --- traceback instead of the message whenever the bot leaves an IRC room. Changed it to %s, like the other log calls in this backend.

No test added since only the log call's format string changes. Found with ruff PLE1205.

I used Claude (an AI assistant) to help with this change; I reviewed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant