title: python "'NoneType' object has no attribute 'encode'"
body: <p>I wrote this tiny Python snippet that scrapes a feed and prints it out. When I run the code, something in the feed triggers the error message you see here as my question. Here's the complete console output on error:</p>
  
  <pre><code>&gt; Traceback (most recent call last):  
  &gt; File "/home/vijay/ffour/ffour5.py",
  &gt; line 20, in &lt;module&gt;
  &gt;     myfeed()   File "/home/vijay/ffour/ffour5.py", line
  &gt; 15, in myfeed
  &gt;     sys.stdout.write(entry["title"]).encode('utf-8')
  &gt; AttributeError: 'NoneType' object has
  &gt; no attribute 'encode'
  </code></pre>