Prevent error on empty install message. (#3024)

* Prevent error on empty install message.

* Create 3024.bugfix.rst
This commit is contained in:
DiscordLiz 2019-10-02 20:38:52 -04:00 committed by Michael H
parent 37f27d8ae4
commit 05eba603a5
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
cog install will no longer error if a cog creator has an empty install message

View File

@ -345,7 +345,7 @@ class Downloader(commands.Cog):
"Cog `{cog_name}` successfully installed. You can load it with `{prefix}load {cog_name}`"
).format(cog_name=cog_name, prefix=ctx.prefix)
)
if cog.install_msg is not None:
if cog.install_msg:
await ctx.send(cog.install_msg.replace("[p]", ctx.prefix))
@cog.command(name="uninstall", usage="<cogs>")