[Downloader] Add Repo.clean_url and use it in [p]findcog (#3129)

* enhance(downloader): add `Repo.clean_url` and use it in `[p]findcog`

* chore(changelog): add towncrier entries
This commit is contained in:
jack1142
2019-11-17 16:25:15 +01:00
committed by Michael H
parent 548a50b984
commit 8a90996b36
4 changed files with 11 additions and 1 deletions

View File

@@ -1150,7 +1150,7 @@ class Downloader(commands.Cog):
repo_url = (
_("Missing from installed repos")
if cog_installable.repo is None
else cog_installable.repo.url
else cog_installable.repo.clean_url
)
cog_name = cog_installable.name
else: