skinnywms icon indicating copy to clipboard operation
skinnywms copied to clipboard

Legend is incorrectly handled when layer not found

Open sandorkertesz opened this issue 4 years ago • 0 comments

See this code in WMSServer.getLegend():

try:
     legend = self.availability.layer(layer, time)
except errors.LayerNotDefined:
     legend = self.plotter.layer

The problem is that in the except branch plotter.layer is a function and should properly called with arguments.

sandorkertesz avatar Feb 11 '21 15:02 sandorkertesz