title: Feedparser - KeyError: 'fullcount'
body: <p>I have tried to follow <a href="http://j4mie.org/blog/how-to-make-a-physical-gmail-notifier/" rel="nofollow">this guide</a>. It is about making a physical gmail notifier. When I entered the same code it found an error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Python27/Projects/gmailnotifier.py", line 20, in &lt;module&gt;
      )["feed"]["fullcount"])
    File "C:\Python27\lib\site-packages\feedparser-5.1.3-py2.7.egg\feedparser.py", line 375, in __getitem__
      return dict.__getitem__(self, key)
  KeyError: 'fullcount'
  </code></pre>
  
  <p>I am not sure why and thats why im asking. I am using windows 7, python 2.7.3, feedparser 5.1.3 and pyserial 2.6</p>
  
  <p>Here is the full code:</p>
  
  <pre><code>import serial, sys, feedparser
  
  #Settings - Change these to match your account details
  USERNAME="mymain@gmail.com"
  PASSWORD="mypassword"
  PROTO="https://"
  SERVER="mail.google.com"
  PATH="/gmail/feed/atom"
  
  SERIALPORT = "COM3" # Change this to your serial port!
  
  # Set up serial port
  try:
      ser = serial.Serial(SERIALPORT, 9600)
  except serial.SerialException:
      sys.exit()
  
  newmails = int(feedparser.parse(
      PROTO + USERNAME + ":" + PASSWORD + "@" + SERVER + PATH
  )["feed"]["fullcount"])
  
  # Output data to serial port
  if newmails &gt; 0: ser.write('M')
  else: ser.write('N')
  
  # Close serial port
  ser.close()
  </code></pre>