Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix nyt redis serialization error
  • Loading branch information
Kilo59 authored May 9, 2020
commit 464453db2f30d9a9e8042bbc27e75618aeffe9f9
6 changes: 5 additions & 1 deletion app/services/location/nyt.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ async def get_locations():
)
LOGGER.info(f"{data_id} Data normalized")
# save the results to distributed cache
await load_cache(data_id, locations)
# TODO: fix json serialization
try:
await load_cache(data_id, locations)
except TypeError as type_err:
LOGGER.error(type_err)

return locations