title: AttributeError: 'NoneType' object has no attribute 'get_text'
body: <p>I am parsing HTML text with </p>
  
  <pre><code>Telephone = soup.find(itemprop="telephone").get_text()
  </code></pre>
  
  <p>In the case a Telephone number is in the HTML after the <code>itemprop</code> tag, I receive a number and get the output (<code>"Telephone Number: 34834243244"</code>, for instance).</p>
  
  <p>Of course, I receive <code>AttributeError: 'NoneType' object has no attribute 'get_text'</code> in the case no telephone number is found. That is fine.</p>
  
  <p>However, in this case I would like Python not to print an error message and instead set <code>Telephone = "-"</code> and get the output <code>"Telephone Number: -"</code>.</p>
  
  <p>Can anybody advise how to handle this error?   </p>