Skip to content

Commit

Permalink
Fix TileCloud update
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 2, 2024
1 parent b84313d commit 53eedb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tilecloud_chain/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,10 @@ def serve(
with _GET_TILE.labels(storage=cache["type"]).time():
tile2 = store.get_one(tile)

if tile2:
if tile2 and tile2.data is not None:
if tile2.error:
return self.error(config, 500, tile2.error, **kwargs)

assert tile2.data
assert tile2.content_type
return self.response(
config,
Expand Down

0 comments on commit 53eedb2

Please sign in to comment.