Fix TypeError in automatic multi channel unmutes (#4533)

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

View File

@ -334,7 +334,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
if not result: if not result:
continue continue
_mmeber, channel, reason = result _mmeber, channel, reason = result
unmuted_channels.pop(channel) unmuted_channels.remove(channel)
modlog_reason = _("Automatic unmute") modlog_reason = _("Automatic unmute")
channel_list = humanize_list([c.mention for c in unmuted_channels if c is not None]) channel_list = humanize_list([c.mention for c in unmuted_channels if c is not None])