mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
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:
parent
f0836d7182
commit
d07e718ab8
1
changelog.d/downloader/3153.bugfix.rst
Normal file
1
changelog.d/downloader/3153.bugfix.rst
Normal file
@ -0,0 +1 @@
|
||||
Fixed an error on repo add from empty string values for the `install_msg` info.json field.
|
||||
@ -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>")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user