Fix the error for empty author list in [p]findcog (#4042)

This commit is contained in:
jack1142
2020-07-10 22:37:41 +02:00
parent 186dbe6118
commit 3471011f85

View File

@@ -1387,7 +1387,11 @@ class Downloader(commands.Cog):
cog_name = self.cog_name_from_instance(cog) cog_name = self.cog_name_from_instance(cog)
installed, cog_installable = await self.is_installed(cog_name) installed, cog_installable = await self.is_installed(cog_name)
if installed: if installed:
made_by = humanize_list(cog_installable.author) or _("Missing from info.json") made_by = (
humanize_list(cog_installable.author)
if cog_installable.author
else _("Missing from info.json")
)
repo_url = ( repo_url = (
_("Missing from installed repos") _("Missing from installed repos")
if cog_installable.repo is None if cog_installable.repo is None