From 1c997846f282f76d17700f0f16c0a0abb5c49a30 Mon Sep 17 00:00:00 2001 From: Numerlor <25886452+Numerlor@users.noreply.github.com> Date: Wed, 22 Jul 2020 01:39:43 +0200 Subject: Fix handling of elements when fetching signatures. After the change to `find_elements_until_tag`, the text contentsneed to be extracted from the tags instead of passing them directly to re. --- bot/cogs/doc/parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/cogs/doc/parsing.py b/bot/cogs/doc/parsing.py index acf3a0804..725fe47cd 100644 --- a/bot/cogs/doc/parsing.py +++ b/bot/cogs/doc/parsing.py @@ -86,7 +86,7 @@ def get_signatures(start_signature: PageElement) -> List[str]: start_signature, *find_next_siblings_until_tag(start_signature, ("dd",), limit=2), )[-3:]: - signature = UNWANTED_SIGNATURE_SYMBOLS_RE.sub("", element) + signature = UNWANTED_SIGNATURE_SYMBOLS_RE.sub("", element.text) if signature: signatures.append(signature) -- cgit v1.2.3