title: AttributeError: 'NoneType' object has no attribute 'text'+Question
body: <p>I have been getting this error and unsure of what to do with it</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\cmiller.ROCH1\Downloads\New Text Document.py&quot;, line 153, in &lt;module&gt;
      writer.writerow(getrow(str(j), str(i), longest_bench[0])) #writes a row for each owner in the csv
    File &quot;C:\Users\cmiller.ROCH1\Downloads\New Text Document.py&quot;, line 102, in getrow
      ranktext = soup.find('span', class_ = re.compile('teamRank teamId-')).text
  AttributeError: 'NoneType' object has no attribute 'text'
  </code></pre>
  <pre><code>roster = starters + bench #every player on the team roster, in the order they are listed in game center, for the given week
  
  player_totals = soup.find('div', id = 'teamMatchupBoxScore').find('div', class_ = 'teamWrap teamWrap-1').find_all('td', class_ = re.compile(&quot;statTotal&quot;))
  player_totals = [player.text for player in player_totals] #point totals for each player with indecies which correspond to that player's index in roster
  
  teamtotals = soup.findAll('div', class_ = re.compile('teamTotal teamId-')) #the team's total points for the week
  ranktext = soup.find('span', class_ = re.compile('teamRank teamId-')).text
  rank = ranktext[ranktext.index('(') + 1: ranktext.index(')')]#the team's rank in the standings
  </code></pre>