aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/info/doc/_cog.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py
index a06bfcbaf..ff67b0e61 100644
--- a/bot/exts/info/doc/_cog.py
+++ b/bot/exts/info/doc/_cog.py
@@ -365,6 +365,8 @@ class DocCog(commands.Cog):
https://docs.python.org/3/ \
https://docs.python.org/3/objects.inv
"""
+ if not base_url.endswith("/"):
+ raise commands.BadArgument("The base url must end with a slash.")
inventory_url, inventory_dict = inventory
body = {
"package": package_name,