title: bs4 remove None tag after decompose
body: <p>I want to delete advertisment text from scraped data but after i decompose it i get error saying</p>
  <blockquote>
  <p>list index out of range</p>
  </blockquote>
  <p>I think its becouse after decompose is blank space or somthing. Without decompose loop works ok.</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  url = 'https://www.marketbeat.com/insider-trades/ceo-share-buys-and-sales/'
  
  companyName = 'title-area'
  
  r = requests.get(url)
  
  soup = BeautifulSoup(r.content, 'html.parser')
  
  table = soup.find_all('table')[0].tbody.find_all('tr')
  
  #  delete advertisment
  soup.find(&quot;tr&quot;, class_=&quot;bottom-sort&quot;).decompose()
  
  for el in table:
      print(el.find_all('td')[0].text)
  </code></pre>