Skip to content

Commit ecb0a68

Browse files
authored
cache redis json serialization error
1 parent 96efc92 commit ecb0a68

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/services/location/csbs.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ async def get_locations():
9292
)
9393
LOGGER.info(f"{data_id} Data normalized")
9494
# save the results to distributed cache
95-
await load_cache(data_id, locations)
96-
95+
# TODO: fix json serialization
96+
try:
97+
await load_cache(data_id, locations)
98+
except TypeError as type_err:
99+
LOGGER.error(type_err)
100+
97101
# Return the locations.
98102
return locations

0 commit comments

Comments
 (0)