address.py: changed update check of address string
authorFredrik Unger <fred@tree.se>
Fri, 18 Jan 2013 10:49:13 +0000 (11:49 +0100)
committerFredrik Unger <fred@tree.se>
Fri, 18 Jan 2013 10:49:13 +0000 (11:49 +0100)
commit2631577aa8cdce4000f4b0240b701e38dca8d202
tree5c41aec0acebefd873a4a2d49c1c475e92029eb5
parentb568714b60aa9ba2a7b10c5730c5fa5d4ef29ce1
address.py: changed update check of address string

If nominatim data does not exists (eg postcode is not there, but boundary or vice
versa) then the old code failed with NoneType object.
This addresses this but is not optimal.
Current tests works with the sites, so using this solution for now.
xinclude/address.py