title: 'NoneType' object is not iterable: What to do?
body: <p>I try to build a webcrawler but unfortunately I do not know how to handle with the following error message? Does anyone have a solution in mind? &quot;Call&quot; contains the source code of the page I want to scrape and it is not &quot;none&quot; but when I do <code>print(test)</code> I receive &quot;none&quot;. Actually, I am not completely sure if</p>
  <pre><code>test = call.find('p',class_ = re.compile('p p*'))
  </code></pre>
  <p>is correct. Any thoughts?</p>
  <pre><code>#Testing if URL contains necessary elements
              test_list = []
              test = call.find_all('p',class_ = re.compile('p p*'))
              for c in test:
                  x = c.text.strip()
                  test_list.append(x)
  if ('Operator' in test_list) and ('Conference Call Participants' in test_list):
                  #Basic Company Info Section
                  #Create cc_id
                  cc_id = counter
  </code></pre>
  <p>Unfortunately, I get the following error message:</p>
  <pre><code>TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-51-c44d70d4fe49&gt; in &lt;module&gt;
        1 #Pull page details
  ----&gt; 2 pullpagedetails(take1)
  
  &lt;ipython-input-50-afd0a6c99d59&gt; in pullpagedetails(Url_list)
       45             test_list = []
       46             test = call.find('p',class_ = re.compile('p p*'))
  ---&gt; 47             for c in test:
       48                 x = c.text.strip()
       49                 print(x)
  
  TypeError: 'NoneType' object is not iterable
  </code></pre>