Permalink
Browse files

Fix for OSM importer falling over if geocoding fails

  • Loading branch information...
cnorthwood committed May 26, 2011
1 parent 7343d03 commit 8fe11572fdc910023b75c528552300aff45b7bed
Showing with 1 addition and 0 deletions.
  1. +1 −0 molly/apps/places/providers/osm.py
@@ -283,6 +283,7 @@ def import_data(self, metadata, output):
request = AnyMethodRequest(self._url, method='HEAD')
response = urllib2.urlopen(request)
new_etag = response.headers['ETag'][1:-1]
+ output = self.output
if False and new_etag == old_etag:
output.write('OSM data not updated. Not updating.\n')

0 comments on commit 8fe1157

Please sign in to comment.