That's why we should have tests

This commit is contained in:
2023-11-25 00:27:12 +01:00
parent 2e2d491e2e
commit 1bc5cf31e0

View File

@ -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]