diff options
| author | 2021-02-11 03:54:40 -0800 | |
|---|---|---|
| committer | 2021-02-11 03:54:40 -0800 | |
| commit | ded34bc8ab063064fbd50199d07bbeec1db884ad (patch) | |
| tree | f513bf52bb84c8bc0d031367d537a10d42605169 | |
| parent | Added more fields and responses. (diff) | |
Made flake8 very happy.
| -rw-r--r-- | bot/exts/info/pypi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/pypi.py b/bot/exts/info/pypi.py index e4c90090d..544b52b49 100644 --- a/bot/exts/info/pypi.py +++ b/bot/exts/info/pypi.py @@ -5,7 +5,7 @@ from discord import Embed from discord.ext.commands import Cog, Context, command from bot.bot import Bot -from bot.constants import NEGATIVE_REPLIES, Colours +from bot.constants import Colours, NEGATIVE_REPLIES URL = "https://pypi.org/pypi/{package}/json" FIELDS = ["author", "requires_python", "description", "license"] @@ -26,7 +26,7 @@ class PyPi(Cog): async with self.bot.http_session.get(URL.format(package=package)) as response: if response.status == 404: - embed.description = f"Package could not be found." + embed.description = "Package could not be found." elif response.status == 200 and response.content_type == "application/json": response_json = await response.json() |