Skip to content

Commit 464453d

Browse files
authored
fix nyt redis serialization error
1 parent ecb0a68 commit 464453d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/services/location/nyt.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ async def get_locations():
136136
)
137137
LOGGER.info(f"{data_id} Data normalized")
138138
# save the results to distributed cache
139-
await load_cache(data_id, locations)
139+
# TODO: fix json serialization
140+
try:
141+
await load_cache(data_id, locations)
142+
except TypeError as type_err:
143+
LOGGER.error(type_err)
140144

141145
return locations

0 commit comments

Comments
 (0)