It might be better to do something here like:
```
while true
  user = collection.first({ "loc": { "$exists": False }, "location": { "$not": ""})
  #Try to geocode, if it doesn't work break out of loop
```