prevent an empty iterable issue (#3320)

This commit is contained in:
Michael H 2020-01-10 00:04:12 -05:00 committed by GitHub
parent acc5baec7d
commit 371292e03a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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