title: How to solve TypeError: object of type 'NoneType' has no len()
body: <p>I am running this code:</p>
  
  <pre><code>d2 = whois.whois('sportswithamission.com')
  </code></pre>
  
  <p>It works.</p>
  
  <p>Then I am converting dictionary from output into a dataframe using next code:</p>
  
  <pre><code>df2 = pd.DataFrame.from_dict(d2, orient='index')
  </code></pre>
  
  <p>This code is throwing next error: </p>
  
  <blockquote>
    <p>TypeError: object of type 'NoneType' has no len()</p>
  </blockquote>
  
  <p>How can I solve it?</p>