From 326ae76fe0d7a2add38dbee5b7aac5158c62f6a7 Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Fri, 10 Jul 2020 22:37:41 +0200 Subject: [PATCH] Fix the error for empty author list in `[p]findcog` (#4042) --- redbot/cogs/downloader/downloader.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/redbot/cogs/downloader/downloader.py b/redbot/cogs/downloader/downloader.py index 886074b80..ef4138387 100644 --- a/redbot/cogs/downloader/downloader.py +++ b/redbot/cogs/downloader/downloader.py @@ -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