Skip to content

Commit

Permalink
Fix truthy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Oct 4, 2024
1 parent d670afe commit 6c89fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion localtileserver/tiler/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _render_image(
colormap = {k: tuple(v) for k, v in enumerate(c(range(256), 1, 1))}
elif isinstance(colormap, Colormap):
colormap = {k: tuple(v) for k, v in enumerate(colormap(range(256), 1, 1))}
else:
elif colormap:
c = json.loads(colormap)
if isinstance(c, list):
c = LinearSegmentedColormap.from_list("", c, N=256)
Expand Down

0 comments on commit 6c89fd8

Please sign in to comment.