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 committed by GitHub
parent a7a18ad956
commit 326ae76fe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1387,7 +1387,11 @@ class Downloader(commands.Cog):
cog_name = self.cog_name_from_instance(cog)
installed, cog_installable = await self.is_installed(cog_name)
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 = (
_("Missing from installed repos")
if cog_installable.repo is None