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
cache redis json serialization error
  • Loading branch information
Kilo59 authored May 9, 2020
commit ecb0a6867b03909fc76220817f7f4951b064c4f8
8 changes: 6 additions & 2 deletions app/services/location/csbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ 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 the locations.
return locations