Skip to content

Commit

Permalink
[Core] Use new PyPI urls (#3607)
Browse files Browse the repository at this point in the history
* fix: use new PyPI urls

* Update core_commands.py

* Update core_commands.py
  • Loading branch information
Jackenmen committed Feb 28, 2020
1 parent ad4a75b commit e8b975a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions redbot/core/core_commands.py
Expand Up @@ -310,7 +310,8 @@ async def info(self, ctx: commands.Context):
author_repo = "https://github.com/Twentysix26"
org_repo = "https://github.com/Cog-Creators"
red_repo = org_repo + "/Red-DiscordBot"
red_pypi = "https://pypi.python.org/pypi/Red-DiscordBot"
red_pypi = "https://pypi.org/project/Red-DiscordBot"
red_pypi_json = "https://pypi.org/pypi/Red-DiscordBot/json"
support_server_url = "https://discord.gg/red"
dpy_repo = "https://github.com/Rapptz/discord.py"
python_url = "https://www.python.org/"
Expand All @@ -327,7 +328,7 @@ async def info(self, ctx: commands.Context):
custom_info = await self.bot._config.custom_info()

async with aiohttp.ClientSession() as session:
async with session.get("{}/json".format(red_pypi)) as r:
async with session.get(red_pypi_json) as r:
data = await r.json()
outdated = VersionInfo.from_str(data["info"]["version"]) > red_version_info
about = _(
Expand Down
2 changes: 1 addition & 1 deletion redbot/core/events.py
Expand Up @@ -86,7 +86,7 @@ async def on_ready():
outdated_red_message = ""
with contextlib.suppress(aiohttp.ClientError, discord.HTTPException):
async with aiohttp.ClientSession() as session:
async with session.get("https://pypi.python.org/pypi/red-discordbot/json") as r:
async with session.get("https://pypi.org/pypi/red-discordbot/json") as r:
data = await r.json()
if VersionInfo.from_str(data["info"]["version"]) > red_version_info:
INFO.append(
Expand Down

0 comments on commit e8b975a

Please sign in to comment.