Skip to content

Commit

Permalink
small code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jan 31, 2017
1 parent 2b9c54a commit 4f2b115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/budy/bots/omni_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def gc_measurements_db(self):
object_ids = []

for measurement in list(measurements):
object_id = measurement.meta["object_id"]
object_id = measurement.meta.get("object_id", 0)
if object_id in object_ids:
measurements.remove(measurement)
measurement.delete()
Expand Down

0 comments on commit 4f2b115

Please sign in to comment.