Commits

Mikhail Korobov committed 90405ef

More geocoding exceptions are catched

  • Participants
  • Parent commits 989ef99

Comments (0)

Files changed (2)

File easy_maps/models.py

             address = self.address.encode('utf8')
             self.computed_address, (self.latitude, self.longtitude,) = g.geocode(address)
             self.geocode_error = False
-        except UnboundLocalError:
+        except (UnboundLocalError, ValueError,):
             self.geocode_error = True
 
     def save(self, *args, **kwargs):
 #!/usr/bin/env python
 from distutils.core import setup
-version='0.5.2'
+version='0.5.3'
 
 setup(
     name = 'django-easy-maps',