{"action":"created","issue":{"url":"https://api.github.com/repos/furious-luke/django-address/issues/31","labels_url":"https://api.github.com/repos/furious-luke/django-address/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/furious-luke/django-address/issues/31/comments","events_url":"https://api.github.com/repos/furious-luke/django-address/issues/31/events","html_url":"https://github.com/furious-luke/django-address/issues/31","id":125619161,"number":31,"title":"KeyError: u'postal_code_suffix'","user":{"login":"jplehmann","id":460964,"avatar_url":"https://avatars.githubusercontent.com/u/460964?v=3","gravatar_id":"","url":"https://api.github.com/users/jplehmann","html_url":"https://github.com/jplehmann","followers_url":"https://api.github.com/users/jplehmann/followers","following_url":"https://api.github.com/users/jplehmann/following{/other_user}","gists_url":"https://api.github.com/users/jplehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/jplehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jplehmann/subscriptions","organizations_url":"https://api.github.com/users/jplehmann/orgs","repos_url":"https://api.github.com/users/jplehmann/repos","events_url":"https://api.github.com/users/jplehmann/events{/privacy}","received_events_url":"https://api.github.com/users/jplehmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-08T14:09:12Z","updated_at":"2016-01-08T21:44:35Z","closed_at":null,"body":"When I use two legitimate addresses, varying only by a street number, one works and one fails.\r\n\r\nWorks: `s.address = \"2021 Cap Rock, Richardson, TX 75080\"`  (without zipcode also works)\r\nFails: `s.address = \"2044 Cap Rock, Richardson, TX 75080\"`\r\n\r\n<ipython-input-82-b82e0a16a84a> in <module>()\r\n----> 1 s.address = \"2044 Cap Rock, Richardson, TX 75080\"\r\n\r\n/Users/john/.venv/mm/lib/python2.7/site-packages/address/models.pyc in __set__(self, inst, value)\r\n    330 \r\n    331     def __set__(self, inst, value):\r\n--> 332         super(AddressDescriptor, self).__set__(inst, to_python(value))\r\n    333 \r\n    334 \r\n\r\n/Users/john/.venv/mm/lib/python2.7/site-packages/address/models.pyc in to_python(value, instance, address_model, component_model, geolocator)\r\n    169     # if that fails then store directly.\r\n    170     elif isinstance(value, string_types):\r\n--> 171         return lookup(value, instance, address_model, component_model, geolocator)\r\n    172 \r\n    173     # A dictionary of named address components.\r\n\r\n/Users/john/.venv/mm/lib/python2.7/site-packages/address/models.pyc in lookup(address, instance, address_model, component_model, geolocator)\r\n    201         else:\r\n    202             return address_model.objects.create(formatted=address)\r\n--> 203     return to_python(location.raw, instance, component_model)\r\n    204 \r\n    205 \r\n\r\n/Users/john/.venv/mm/lib/python2.7/site-packages/address/models.pyc in to_python(value, instance, address_model, component_model, geolocator)\r\n    176         # Attempt a conversion.\r\n    177         try:\r\n--> 178             return _to_python(value, instance, address_model, component_model)\r\n    179         except InconsistentDictError:\r\n    180             formatted = value.get('formatted_address', None)\r\n\r\n/Users/john/.venv/mm/lib/python2.7/site-packages/address/models.pyc in _to_python(value, instance, address_model, component_model)\r\n     54     kind_table = {}\r\n     55     for comp in components:\r\n---> 56         kinds = [KEY_KIND_TABLE[k] for k in comp.get('types', [])]\r\n     57         kind = reduce(lambda x,y: x|y, kinds, 0)\r\n     58         short_name = comp.get('short_name', '')\r\n\r\nKeyError: u'postal_code_suffix'"},"comment":{"url":"https://api.github.com/repos/furious-luke/django-address/issues/comments/170136591","html_url":"https://github.com/furious-luke/django-address/issues/31#issuecomment-170136591","issue_url":"https://api.github.com/repos/furious-luke/django-address/issues/31","id":170136591,"user":{"login":"furious-luke","id":561722,"avatar_url":"https://avatars.githubusercontent.com/u/561722?v=3","gravatar_id":"","url":"https://api.github.com/users/furious-luke","html_url":"https://github.com/furious-luke","followers_url":"https://api.github.com/users/furious-luke/followers","following_url":"https://api.github.com/users/furious-luke/following{/other_user}","gists_url":"https://api.github.com/users/furious-luke/gists{/gist_id}","starred_url":"https://api.github.com/users/furious-luke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furious-luke/subscriptions","organizations_url":"https://api.github.com/users/furious-luke/orgs","repos_url":"https://api.github.com/users/furious-luke/repos","events_url":"https://api.github.com/users/furious-luke/events{/privacy}","received_events_url":"https://api.github.com/users/furious-luke/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T21:44:35Z","updated_at":"2016-01-08T21:44:35Z","body":"Ah yes I see. As it turns out Google has added a new address component called \"postal code suffix\". I've updated the code to handle this new component."}}