Skip to content
Open
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion pygeoapi/provider/mvt_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def get_tiles(self, layer=None, tileset=None,
else:
resp = session.get(f'{base_url}/{layer}/{z}/{x}/{y}{url_query}') # noqa

if resp.status_code == 404:
if resp.status_code == 404 or resp.status_code == 500:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update to:

if resp.status_code in [404, 500]:

if (self.is_in_limits(self.get_tilematrixset(tileset), z, x, y)): # noqa
return None
raise ProviderTileNotFoundError
Expand Down
Loading