title: Beautifulsoup Exception list out of range
body: <p>I'm using beautifulsoup to do the following:<br>
  <code>section = soup.findAll('tbody')[0]</code></p>
  
  <p>How can set variable like that using the first list item... without it throwing an exception to: <code>IndexError: list index out of range</code> if BS4 can't find tbody?</p>
  
  <p>Any ideas?</p>