aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-06-17 21:48:55 +0200
committerGravatar Numerlor <[email protected]>2020-06-17 21:48:55 +0200
commit39aa2fbe0d19edcb61080e49d591a370820bce47 (patch)
treea7931ec3ed022014668da139d289e23f1183c024
parentMake doc get greedy. (diff)
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.
-rw-r--r--bot/cogs/doc.py2
1 files changed, 2 insertions, 0 deletions
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: