diff options
| author | 2020-06-17 21:48:55 +0200 | |
|---|---|---|
| committer | 2020-06-17 21:48:55 +0200 | |
| commit | 39aa2fbe0d19edcb61080e49d591a370820bce47 (patch) | |
| tree | a7931ec3ed022014668da139d289e23f1183c024 | |
| parent | Make 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.py | 2 |
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: |