diff --git a/vrobbler/apps/locations/models.py b/vrobbler/apps/locations/models.py index cc4bf80..668d605 100644 --- a/vrobbler/apps/locations/models.py +++ b/vrobbler/apps/locations/models.py @@ -49,8 +49,8 @@ class GeoLocation(ScrobblableMixin): logger.error("No lat or lon keys in data dict") return - int_lat, r_lat = str(data_dict["lat", ""]).split(".") - int_lon, r_lon = str(data_dict["lat", ""]).split(".") + int_lat, r_lat = str(data_dict.get("lat", "")).split(".") + int_lon, r_lon = str(data_dict.get("lat", "")).split(".") try: trunc_len = r_lat[0:4]