From 8555f8c28ca06cdf741b91071a6b57a9eefb68a0 Mon Sep 17 00:00:00 2001 From: Flame442 <34169552+Flame442@users.noreply.github.com> Date: Mon, 22 Apr 2019 20:15:26 -0400 Subject: [PATCH] [Downloader] Pretties up the output when libraries fail to install (#2576) * Pretties up the output when libraries fail to install * Stupid double quote bullshit * Added jack1142's suggestion * I will never satisfy the eldritch being named black --- redbot/cogs/downloader/downloader.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/redbot/cogs/downloader/downloader.py b/redbot/cogs/downloader/downloader.py index 354020f38..aad81a007 100644 --- a/redbot/cogs/downloader/downloader.py +++ b/redbot/cogs/downloader/downloader.py @@ -305,10 +305,11 @@ class Downloader(commands.Cog): return if not await repo.install_requirements(cog, self.LIB_PATH): + libraries = humanize_list(tuple(map(inline, cog.requirements))) await ctx.send( - _( - "Failed to install the required libraries for `{cog_name}`: `{libraries}`" - ).format(cog_name=cog.name, libraries=cog.requirements) + _("Failed to install the required libraries for `{cog_name}`: {libraries}").format( + cog_name=cog.name, libraries=libraries + ) ) return