From 39aa2fbe0d19edcb61080e49d591a370820bce47 Mon Sep 17 00:00:00 2001 From: Numerlor <25886452+Numerlor@users.noreply.github.com> Date: Wed, 17 Jun 2020 21:48:55 +0200 Subject: Skip symbols with slashes in them. The symbols mostly point to autogenerated pages, and do not link to specific symbols on their pages and are thus unreachable with the current implementation. --- bot/cogs/doc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot/cogs/doc.py b/bot/cogs/doc.py index 010cb9f4c..59c3cc729 100644 --- a/bot/cogs/doc.py +++ b/bot/cogs/doc.py @@ -191,6 +191,8 @@ class Doc(commands.Cog): for group, value in package.items(): for symbol, (package_name, _version, relative_doc_url, _) in value.items(): + if "/" in symbol: + continue # skip unreachable symbols with slashes absolute_doc_url = base_url + relative_doc_url if symbol in self.inventories: -- cgit v1.2.3