diff --git a/GeoHealthCheck/models.py b/GeoHealthCheck/models.py index cea250c0..b858a9d8 100644 --- a/GeoHealthCheck/models.py +++ b/GeoHealthCheck/models.py @@ -217,6 +217,8 @@ def __init__(self, owner, resource_type, title, url, tags): self.latitude, self.longitude = util.geocode(url) except Exception as err: # skip storage LOGGER.exception('Could not derive coordinates: %s', err) + self.latitude = 0.0 + self.longitude = 0.0 def __repr__(self): return '' % (self.identifier, self.title)