Properly iterate through dict's items in multi channel unmute (#4534)

This commit is contained in:
jack1142 2020-10-26 18:57:29 +01:00 committed by GitHub
parent 46c0f5e373
commit bcc24d67d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,7 +364,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
error_msg = _("{member} could not be unmuted for the following reasons:\n").format( error_msg = _("{member} could not be unmuted for the following reasons:\n").format(
member=member member=member
) )
for reason, channel_list in reasons: for reason, channel_list in reasons.items():
error_msg += _("{reason} In the following channels: {channels}\n").format( error_msg += _("{reason} In the following channels: {channels}\n").format(
reason=reason, reason=reason,
channels=humanize_list([c.mention for c in channel_list]), channels=humanize_list([c.mention for c in channel_list]),