Permalink
Browse files

Fix odd OSM importer bug

  • Loading branch information...
1 parent 85146be commit a6f0866cb1336bd66909d521290e6720a01850c8 @cnorthwood cnorthwood committed Jul 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 molly/apps/places/providers/osm.py
@@ -188,7 +188,7 @@ def endElement(self, name):
def endDocument(self):
for entity in Entity.objects.filter(source=self.source):
- if not entity.identifiers['osm'] in self.ids:
+ if not entity.identifiers.get('osm') in self.ids:
entity.delete()
self.delete_count += 1

0 comments on commit a6f0866

Please sign in to comment.