mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
prevent an empty iterable issue (#3320)
This commit is contained in:
parent
acc5baec7d
commit
371292e03a
@ -75,6 +75,7 @@ class Announcer:
|
|||||||
if len(failed) == 1
|
if len(failed) == 1
|
||||||
else _("I could not announce to the following servers: ")
|
else _("I could not announce to the following servers: ")
|
||||||
)
|
)
|
||||||
|
if failed:
|
||||||
msg += humanize_list(tuple(map(inline, failed)))
|
msg += humanize_list(tuple(map(inline, failed)))
|
||||||
await self.ctx.bot.send_to_owners(msg)
|
await self.ctx.bot.send_to_owners(msg)
|
||||||
self.active = False
|
self.active = False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user