mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 09:22:31 -05:00
Fix the error for empty author list in [p]findcog (#4042)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user