it seems like the try should wrap the `get` but not necessarily the `set_locations`, which could also raise this error in a totally unrelated way