title: Getting 'NoneType' object is not subscriptable while collecting coordinates field from Twitter
body: <p>Ok, so I have a cod that collects data from twitter but I get an error when I include the coordinates field. The code runs a few time but I get this error.    </p>
  
  <pre><code>from tweepy import Stream
  from tweepy import OAuthHandler
  from tweepy.streaming import StreamListener
  import time
  import string
  import json
  import re
  
  ckey ='mykey'
  csecret ='mykey'
  atoken = 'mykey'
  asecret = 'mykey'
  
  class listener(StreamListener):
  
      def on_data(self, data):
          try:
              jsonData=json.loads(data)
              geo_lat=jsonData['geo']['coordinates'][0] // field that get error
              geo_long=jsonData['geo']['coordinates'][1] // field that get erro
              savethis=+str(geo_lat)+', '+str(geo_long)          
              print unicode(savethis).encode("utf-8")
              return True
          except BaseException, e:
               print 'Falied on data,',str(e)
               time.sleep(5)
          def on_error(self, status):
              print status
  
  auth = OAuthHandler(ckey, csecret)
  auth.set_access_token(atoken, asecret)
  twitterStream = Stream(auth, listener())
  #twitterStream.filter(locations=[-78,15,-70,18 ])
  twitterStream.filter(locations=[-74,40,-73,41])
  </code></pre>
  
  <p><strong>Error</strong> -</p>
  
  <pre><code>Traceback (most recent call last):
  File "C:/Users/Kevonia/Dropbox/Major Project/Python Workspace/database&amp;filerwithbugs.py", line 46, in on_data
  geo_lat=jsonData['geo']['coordinates'][0]
  TypeError: 'NoneType' object is not subscriptable
  </code></pre>