Skip to content
Permalink
Browse files

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
  • Loading branch information
Flame442 authored and mikeshardmind committed Dec 2, 2019
1 parent f0836d7 commit d07e718ab8ab67e991c4a820e7ad32cf0b05fd4f
Showing with 2 additions and 1 deletion.
  1. +1 −0 changelog.d/downloader/3153.bugfix.rst
  2. +1 −1 redbot/cogs/downloader/downloader.py
@@ -0,0 +1 @@
Fixed an error on repo add from empty string values for the `install_msg` info.json field.
@@ -462,7 +462,7 @@ def __init__(self, bot: Red):
)
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>")

0 comments on commit d07e718

Please sign in to comment.
You can’t perform that action at this time.