diff options
| author | 2019-11-10 21:31:47 +0100 | |
|---|---|---|
| committer | 2019-11-10 21:31:47 +0100 | |
| commit | 4f393d7b95101cc31269eb30742195e771deb705 (patch) | |
| tree | af9874fe875b19cc3fbcf12c53ce6b5df84327f2 | |
| parent | Add a command for refreshing inventories (diff) | |
Move signatures definition
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/doc.py | 2 | 
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 | 
