Fixes errors on repo add from empty string values for install_msg (#3153)

* Fixes errors on repo add from empty string values for `install_msg`

* Create 3153.bugfix.rst
This commit is contained in:
Flame442
2019-12-02 11:41:28 -05:00
committed by Michael H
parent f0836d7182
commit d07e718ab8
2 changed files with 2 additions and 1 deletions

View File

@@ -462,7 +462,7 @@ class Downloader(commands.Cog):
)
else:
await ctx.send(_("Repo `{name}` successfully added.").format(name=name))
if repo.install_msg is not None:
if repo.install_msg:
await ctx.send(repo.install_msg.replace("[p]", ctx.prefix))
@repo.command(name="delete", aliases=["remove", "del"], usage="<repo_name>")