aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2019-11-10 21:31:47 +0100
committerGravatar Numerlor <[email protected]>2019-11-10 21:31:47 +0100
commit4f393d7b95101cc31269eb30742195e771deb705 (patch)
treeaf9874fe875b19cc3fbcf12c53ce6b5df84327f2
parentAdd a command for refreshing inventories (diff)
Move signatures definition
-rw-r--r--bot/cogs/doc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/doc.py b/bot/cogs/doc.py
index 8cf32fc7f..f7e8ae9d6 100644
--- a/bot/cogs/doc.py
+++ b/bot/cogs/doc.py
@@ -252,7 +252,6 @@ class Doc(commands.Cog):
symbol_id = url.split('#')[-1]
soup = BeautifulSoup(html, 'lxml')
symbol_heading = soup.find(id=symbol_id)
- signatures = []
search_html = str(soup)
if symbol_heading is None:
@@ -275,6 +274,7 @@ class Doc(commands.Cog):
signatures = None
else:
+ signatures = []
description = str(symbol_heading.find_next_sibling("dd"))
description_pos = search_html.find(description)
# Get text of up to 3 signatures, remove unwanted symbols