Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

fixed an error with message formatting in a ValueError message #3001

Merged
merged 1 commit into from
Sep 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def remove_message(self, msg):
"""
with self.message_lock:
if msg not in self.messages:
raise ValueError(f'{msg} was not found in '
raise ValueError(f'{msg.msg_type} was not found in '
'the list of messages.')
# Update processed message count if a read message was removed
if self.messages.index(msg) < self._processed_messages:
Expand Down